Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Chrome Web Developer tools not listing some JavaScript files as of version 27.0.1453.93?

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?

like image 656
GrantVS Avatar asked Dec 15 '22 10:12

GrantVS


1 Answers

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

like image 116
Farshid Saberi Avatar answered Feb 25 '23 23:02

Farshid Saberi