Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to debug javascript in Visual studio

I tried to debug my javascript but it doesn't fires the breakpoint.

I am using IE8 and VS2010.

On trying to add

debugger;

an error occurs like;

An unhandled exception (script breakpoint) occured in iexplorer.exe Possible debuggers:

I found that Tools-->Debugging-->Just In Time-->script is unchecked.

I checked it and saved....It remains unchecked....

I repaired my visual studio still issue continues...

The issue occures after i had installed VS2012

like image 668
remyaviswan Avatar asked Nov 02 '22 17:11

remyaviswan


1 Answers

I know it's late, but I found out why this happened to me. I had

debugger;

scattered throughout my javascript file because both IE and Chrome would not hit my breakpoints.

When using IE and hitting F12 for Developer Tools, the code breaks on the debugger lines but the Windows pop-up did not open. Hitting "Continue" in the debugger window executed the code normally.

Hope this helps

like image 178
foremaro Avatar answered Nov 08 '22 09:11

foremaro