views:

249

answers:

1

Hi

In a VS2008 web project I have a usercontrol with some javascript that I want to debug. When I try to set a breakpoint I get "This is not a valid location for a breakpoint". I tried this on a regular aspx page and was able to set the breakpoint just fine.

Is there some limitation for setting javascript breakpoints in usercontrols? Is there some setting that needs to change?

Thanks

A: 

I can't seem to set a break point in my usercontrol either.

You can try adding the debugger; keyword, Sys.Debug.fail('message') or Sys.Debugger.assert(a == 1) to your javascript to force a breakpoint to work around this issue.

Ryu
Yes - you could actually even do that in VS2005 - just want to get the product to work as advertised. I guess since it only seems to be an issuue when in a user control I can live with it.
Jim Evans