In VS2010 there was no issue with javascript breakpoints. Now that we are on VS2012, if I set a breakpoint in a javascript function that resides in the aspx page, the dubugger skips past it. Also, the aspx page is not showing up in the (Script Documents) of the solution while in debug mode. I thought I would be able to set a break point there, but not so much. Anyone having a similar issue and how can we fix this?
Asked
Active
Viewed 410 times
0
-
3put debugger; inside where you want to break – Dan Hunex Dec 12 '13 at 20:39
-
@DanHunex that worked for what i need. Thanks. Can you add it as an answer so I can mark it? – Troy Mitchel Dec 12 '13 at 20:46
1 Answers
3
put debugger; inside where you want to break as in
function foo()
{
debugger;
//rest of the code
}

Dan Hunex
- 5,172
- 2
- 27
- 38
-
3Make sure you remove them too before promoting your code to production. – Azhar Khorasany Dec 12 '13 at 21:11