Vs2010: trying to debug javascript using Chrome: this is not a valid place for breakpoint

Every time I try to set a debug point in Javascript, eietehr in Design mode or during runniong, I get an error:

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

When I go to the VS2010 options screen in the section "Debugging Just In Time", I see that Managed, Native and Script are selected,

I also posted the line "debugger"; in the first line of the javascript function, which is called, but the gap never hits.

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

 <compilation debug="true 

I am experiencing this problem on a new machine ... Can it help?

Edit: I left a huge detail:

Google Chrome is my default browser.

(I'm trying to debug the error only for Chrome.)

Should I resort to debugging tools other than VS2010? I think it should work. We hope too, huh ??

+7
javascript debugging google-chrome windows-7 visual-studio-2010
source share
2 answers

You can debug javascript only inside chrome.

Watch it
How to run JavaScript debugger in Google Chrome? http://www.youtube.com/watch?v=c_oiQYirKuY&feature=player_embedded
https://developer.chrome.com/devtools http://www.chromium.org/devtools strike>

+10
source share

visual studio only debugs js works in IE as far as I know. Chrome has a console type debugger that I have no idea how to use it - it is available on the page icon> developer> javascript console. you can also look at chrome extensions to see if anyone has created a nicer debugger. I know there is a firebug extension, but I'm not sure what features it offers.

if all else fails:

 alert('made it this far!'); 
+5
source share

All Articles