When debugging CocosCreator on Chrome, you cannot see the Log file and line number.

Version: 2.4.10

Problem: Console.log is printed in vconsole.min.js, not the file where the Log corresponds.

Solution: 

Your installation directory/Resources/static/preview-templates/index.jade

Open the index.jade file and block "vConsole = new VConsole()"

3.X Modify the address: your installation directory/Resources/app.asar.unpacked/builtin/preview/static/views/script.ejs

 Reference link

 

Guess you like

Origin blog.csdn.net/qq_38318701/article/details/131224099