vs2010: trying to debug javascript using Chrome: this is not a valid location for a breakpoint

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-06-09T04:10:53Z Indexed on 2010/06/09 5:42 UTC
Read the original article Hit count: 1102

Everytime I try to set a debug point in Javascript, eietehr while in Design mode or while runniong, I get the error:

 trying to set a breakpoint in javascript: this is not a valid location for a breakpoint

When I go to VS2010's Options screen under Debugging Just In Time, I see that Managed, Native & Script are selected,

I also placed the line "debugger;" in the first line of a javascript function that is called but the break is never hit.

In the Web.Config (although this is probably for compiled code:):

<compilation debug="true

I'm reliving this problem on a new machine...Can u help?

Edit: I left out a huge detail:

Google Chrome is my default browser.

(I am trying to debug a Chrome-only error.)

Must I resort to other debug tools other than VS2010? I am thinking that it should work. Too hopeful, eh?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about debugging