This seems to be a regular question on SO and I’ve tried all solutions suggested but no good.
My problem is that in my asp.net mvc website (in VS2012) the breakpoints “ARE” being hit in all my controller code, but they “ARE NOT” being hit in the actual javascript code in the aspx pages. The breakpoints in the javascript is showing the good old “This breakpoint will not be hit. The symbols have not been loaded”.
Ive checked all the pdb files and they are all there, and the module window says the symbols are loaded.
Any ideas why the actual markup breakpoints wouldnt be being hit?
Thanks
Have you tried adding a ‘debugger’ command in the javascript code? I know this is usually frowned upon though.
Eg:
You could also try to enable javascript debugging in IE by unchecking both of the Disable script debugging from IE => Options => Advanced.
Reference: