简体   繁体   English

Eclipse中的HTML / JavaScript调试

[英]HTML/JavaScript Debugging in Eclipse

Running a webapplication in an environment with IE 6 (please do not comment that...), I'm looking for a debugging tool for html/javascript in Eclipse Galileo. 在IE 6的环境中运行web应用程序(请不要评论......),我正在寻找Eclipse Galileo中的html / javascript调试工具。 I'm not supposed to install any other software but I'm able to install a Eclipse Plugin. 我不应该安装任何其他软件,但我可以安装Eclipse插件。

Thank you for every hint. 谢谢你的每一个提示。 :) :)

PS. PS。 IE 6 drives me nuts. IE 6让我疯狂。 I usually use FF or Chrome but sometimes its not my decision. 我通常使用FF或Chrome,但有时它不是我的决定。

Have you looked into the ATF plugin for eclipse? 你有没有看过eclipse的ATF插件? Includes a JS debugger that looks and works similarly to the Java debugger. 包含一个JS调试器,其外观和工作方式与Java调试器类似。

Alternatively, you could use the MS Script Editor. 或者,您可以使用MS脚本编辑器。 It' ain't pretty, but it's got all the basic debugging support you probably need. 它并不漂亮,但它可能需要您提供的所有基本调试支持。 Here's a link that does a decent job of explaining basic use and setup: http://www.jonathanboutelle.com/how-to-debug-javascript-in-internet-explorer 这是一个很好的解释基本用途和设置的链接: http//www.jonathanboutelle.com/how-to-debug-javascript-in-internet-explorer

My personal approach for using the MS debugger is to just insert a line into my code that says simply: xx; 我个人使用MS调试器的方法是在我的代码中插入一行简单说明: xx; This will fire the debugger at exactly the spot I need, then I just change the value of x in the watchlist to be equal to document , thus correcting the error I forced. 这将在我需要的位置激活调试器,然后我只是将监视列表中的x值更改为等于document ,从而纠正我强制的错误。 I can then step through the lines of my code and debug as usual. 然后,我可以像往常一样逐步执行代码行和调试。

以前帖子链接到ATF: http//www.eclipse.org/atf/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM