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.
- Within IE go into Tools - Internet Options - Advanced tab and make sure the 'Disable Script Debugging' is unchecked.
- Make sure you have a breakpoint in your javascript.
- Start debugging your web app in VS.
- Within VS select menu item Debug - 'Attach to Process...'
- 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