Debugging JavaScript in Firefox
Debugging JavaScript in IE
Solution for Debugging JavaScript in Firefox
Firebug Method:
- Open page to debug in Firefox
- Start Firebug
- Click on the "Script" tab on top of Firebug pane
- Assign break points and step through code as you would with VS2005
Debugger line method:
- IE: Tools/Internet Options/Advanced Tab/Uncheck "Disable Script Debugging"
- VS: Add following line to JavaScript code:
debugger;
- Add breakpoint to line above
- Remove line above after debugging complete
- IE: Tools/Internet Options/Advanced Tab/Uncheck "Disable Script Debugging"
- VS: Solution Explorer/Right-Click .ASPX/View in Browser
- VS: Debug/Attach to Process...
- Attach to: Click Select.../Check Script
- Available Processes/Select iexplore.exe of .ASPX
- Click Attach
- VS: Debug/Windows/Script Explorer
- VS Script Explorer: Double-Click page to open scipt for setting break points
No comments:
Post a Comment