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