Question

Our team uses Chrome Web Developer tools to debug JavaScript. As of yesterday when our browsers upgraded to Chrome Version 27.0.1453.93, the Sources section no longer lists all the JavaScript files. Does anyone know if this is a bug or if there is a setting? Some JavaScript files are still listed but I can't find the criteria for files being listed or not. I checked on an older Chrome Browser pointing to the same URL and all the files are listed. Anyone solved this?

Was it helpful?

Solution

I guess you may have some javascript code that has been loaded dynamically. If it is the case, you should use the phrase

//@ sourceURL=foo.js

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top