To do this, fire up Internet Explorer (all examples will be through Internet Explorer here, though other browsers are just as valid) and go to Tools > Internet Options> Advanced Tab. Under the Advanced Tab you'll see two checkboxes that must be unchecked: "Disable Script Debugging (Internet Explorer)" and "Disable Script Debugging (Othe).
Set "debugger;" before the row that you want to debug.
The page will fire up, but before you do anything on the page itself, go back to Visual Studio and go to Debug > Windows > Script Explorer. What will happen is a script explorer window will dock within Visual Studio showing you the running processes whose scripts you can attach to. The window looks like this on my machine:
reference link:http://www.ben-rush.net/blog/CommentView,guid,b20a27b8-66ba-43e5-b0d6-4aa11c76d739.aspx
ref: http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html
Wednesday, September 13, 2006
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment