简体   繁体   中英

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

an error occurs like;

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

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

看看这个答案,似乎你没有做所需的所有步骤

I had a similar problem. I renamed default.html to index.html and lost script debugging.

Go to the project properties web tab. Make sure 'Start Action' is set to 'Specific Page' and your start page is selected in the text box.

I believe its too late to reply.

But deploy your solution in Visual Studio in RELEASE MODE and NOT IN DEBUG MODE.

This solution solved my problem.

转到Tools => Options => Debugging => Just-In-Time并取消选中Script to sto

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM