简体   繁体   English

如何在eclipse中调试jsp和javascript文件?

[英]how to debug jsp and javascript file in eclipse?

My project containing java files, applets, jsp and javascript file. 我的项目包含java文件,applets,jsp和javascript文件。 I am able to debug applet and java files But not able to configure the debug setup for jsp and javascript files in eclipse. 我能够调试applet和java文件但是无法在eclipse中配置jsp和javascript文件的调试设置。

I tried debug using F12 tools throw browser IE10 but those files are not coming under the project. 我尝试使用F12工具调试浏览器IE10,但这些文件不属于该项目。

please mention the steps for configuring the debug setup 请提及配置调试设置的步骤

Thanks, 谢谢,

Since the Javascript is executed on browser, Eclipse won't be able to debug it, unless it has some way to connect to the browser. 由于Javascript是在浏览器上执行的,因此Eclipse无法对其进行调试,除非它有某种方式可以连接到浏览器。 You can try using AJAX Toolkit Framework , however, it's best to use internet browser's built-in debugger. 您可以尝试使用AJAX Toolkit Framework ,但最好使用Internet浏览器的内置调试器。 You can also have a look at Aptana . 你也可以看看Aptana

If your javascript files are not appearing in the IE debugger: 如果你的javascript文件没有出现在IE调试器中:

  • Check if the javascript files are included properly. 检查是否正确包含了javascript文件。
  • Try debugger on Chrome or Firefox (or with Firebug extension on Firefox) 在Chrome或Firefox上试用调试器(或在Firefox上使用Firebug扩展程序)

Also, you will not be able to place a debug pointer in JSP file unless it's placed in JAVA scriptlet part of JSP. 此外,您将无法在JSP文件中放置调试指针,除非它放在JSP的JAVA scriptlet部分中。

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

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