Can you set a JavaScript breakpoint in UserControl?

Visual Studio 2008, ASP.NET . Can you set a JavaScript breakpoint on the ascx page of UserControl? I can install it on an aspx page.

+7
javascript visual-studio-2008
source share
2 answers

If you clear the Disable Script Debugging check box in Internet Explorer, it should click on the debugger lines and ask you for a built-in debugger, or you can use the VS IDE. I don't think you need a semicolon afterwards

var i = 0; debugger // do work 
+9
source share

There should be no difference, UserControl is just part of an aspx page.

Spelling debugger; in the script where you want to start debugging, it usually solves it for me, and then select VS 2008 or any other debugger that you may prefer in the debugger selection window that appears. Or, if you use Firefox, just make sure Firebug is active when you reach this point in the code.

0
source share

All Articles