问题
I'm looking for a tool that will enable me to debug JavaScript within IE6. What I mean is that I would like the debugger to run within the browser, a là Firebug.
So far I've tried:
- DebugBar;
- Companion JS;
- Firebug Lite.
However, I can't figure out how to set breakpoints, step through the code, add watches, etc. using any of them. I've also tried using the MS Visual Web Debugger 2008 Express Edition, but it doesn't run within the browser and lacks features.
If any of the tools above do provide the JS debugging features I'm seeking, any tips on how to use them effectively would be welcome. Alternatively, feel free to recommend other tools.
Update: In addition to suggesting alternative tools, if someone could confirm that none of the tools above do support setting breakpoints and stepping through JS code in IE6, that would be very helpful.
回答1:
Jonathan Boutelle has a good cheat sheet on getting the Microsoft Script Editor to work for debugging JScript, so if you have Office installed, you might try that.
来源:https://stackoverflow.com/questions/782689/debug-javascript-within-ie6