Why don't Chrome Web Developer tools list some JavaScript files since version 27.0.1453.93?

Our team uses Chrome Web Developer tools to debug JavaScript. As of yesterday, when our browsers were updated to version 27.0.1453.93 Chrome, the "Sources" section no longer lists all JavaScript files. Does anyone know if this is a bug or if there is a setting? Some JavaScript files are still listed, but I cannot find criteria for files that are listed or not. I checked the older Chrome browser by pointing to the same URL and all the files are listed. Has anyone solved this?

+4
source share
1 answer

I think you may have some javascript code that was loaded dynamically. If so, you should use the phrase

//@ sourceURL=foo.js 

at the beginning of your javascript code. foo.js will be assigned as its debugger. And the debugger will show it with that name. chrome and firebug accept it, I'm not sure about other browsers

+12
source

Source: https://habr.com/ru/post/1483055/


All Articles