Reputation: 6167
So I am having this really weird thing where my javascript doesn't show in my sources window. If I set a debugger
in my js and then reload the page, it will break and I can see the javascript. The weird thing is that instead of the tab being labeled MyJavascriptFile.js
it reads [VM](62)
or some other number. I have tried reinstalling chrome and it didnt fix my problem. It didn't used to be like this, any ideas what is going on? Its just really annoying to have get to my javascript by adding debugger statements.
Upvotes: 6
Views: 6882
Reputation: 318
I'm having this problem right now. Must be a bug in Chrome. All you have to do is load the console (f12) then reload the page whilst the console is loaded. You can now see your code.
Upvotes: 8
Reputation: 66304
The weird thing is that instead of the tab being labeled MyJavascriptFile.js it reads VM or some other number.
This is because you are accessing your script through localhost
, and therefore running into security policies. If you host your file at an IP or domain name, you'll be able to debug normally again.
Upvotes: 4