Jonathan D
Jonathan D

Reputation: 1364

VS2013 Javascript Debugging

Does any one know how to enable in page JavaScript script tag debugging?

In vs2012 i can go to the page in visual studio which is running in the debugger and create a break point however in vs2013 i get "A breakpoint could not be inserted at this location"?

Thanks

Upvotes: 7

Views: 2409

Answers (2)

Gearard
Gearard

Reputation: 1

There was a known issue in Visual Studio 2013 that caused breakpoints to not work correctly inside script blocks. A fix was made and is included in the recently released Visual Studio 2013 Update 2 RC, which you can install from http://www.microsoft.com/en-us/download/details.aspx?id=42307.

Upvotes: 0

Andy
Andy

Reputation: 155

try to keep your scripts in separate files and put the breakpoints in that files. I had the same problem but when I moved java scripts from my views to script files I was able to debug. It may not be a solution but at least you should be able to work.

Upvotes: 1

Related Questions