Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

When trying to debug javascript using Visual Studio 2008 there a couple of things you need to do first - otherwise it (debugging) will not work and you'll get the following error when you hover over breakpoint in your javascript:

The breakpoint will not currently be hit. No symbols have been loaded for this document.

Note that this is only for debugging using IE (6) - not sure about other browsers/versions.

  1. Within IE go into Tools - Internet Options - Advanced tab and make sure the 'Disable Script Debugging' is unchecked.
  2. Make sure you have a breakpoint in your javascript.
  3. Start debugging your web app in VS.
  4. Within VS select menu item Debug - 'Attach to Process...'
  5. On the Attach to Process dialog, select the row which has explorer.exe for your app (the Title column will have you page title on it), then click Attach.

That's it - when your breakpoint is reached the VS debugger will be triggered.

HTH
Tim

Posted on Monday, August 18, 2008 10:04 AM C# .NET , ASP.NET , Web Development, JavaScript & CSS , ASP.NET AJAX | Back to top


Comments on this post: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
Helped me!
Left by Damir on Sep 18, 2008 12:04 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
my congratulations for the award you really earned it, anyway good work
Left by free pc games on Nov 18, 2008 7:20 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
Cheers for this. Just want to add that I tried all of this and the breakpoint still didn't hit (it said the page wasn't loaded). Refresh the page and lo and behold, the page is loaded and the breakpoint hits .. love VS2008 ...
Left by Stuart on Dec 04, 2008 2:44 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
I have this problem. When I try and attach Iexplore.exe is greyed out so I can't attach :(
Left by ralph on Jul 01, 2009 7:01 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
Helped me really........Hats off
Left by Kiran Chandran on Jul 03, 2009 2:16 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
BRAVO !
Left by diboj on Sep 23, 2009 5:17 PM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
Thanks, I was working on visual interdev, but your solution fixed my problem as well
Left by Srinivas on Oct 30, 2009 3:08 PM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
Thanks Buddy..its helped a lot
Left by Sabir on Mar 02, 2010 11:41 AM

# re: VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document
Requesting Gravatar...
I was looking for this only , This helped me a lot thanks a lot
Left by Amrita on Mar 22, 2011 11:31 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net