在Eclipse中Applet的调试方法
2011-12-12 15:52
253 查看
一直以来没有写过Applet。最近在修改代码的时候设计到Applet,怎么调试呢?
网上查找了一下以下方法是可行的。转了过来。
1) First enable remote debugging in the Java Plugin:
a) Start –> Settings –> Control Panel –> Java –> Java Applet Runtime Settings –> View
b) Add the following to the “Java Runtime Parameters”:
-Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
2) Close all Web browser Windows
3) Put breakpoints in your source code (you need to have an Eclipse project containing the applet source code)
4) In Eclipse create a remote debugging configuration:
a) Run –> Open Debug Dialog –> Remote Java Application –> New
b) Assign host = localhost and port = 8000
Allow temination of remote VM 选择上。
然后点击Debug按钮就可以debug了。
网上查找了一下以下方法是可行的。转了过来。
1) First enable remote debugging in the Java Plugin:
a) Start –> Settings –> Control Panel –> Java –> Java Applet Runtime Settings –> View
b) Add the following to the “Java Runtime Parameters”:
-Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
2) Close all Web browser Windows
3) Put breakpoints in your source code (you need to have an Eclipse project containing the applet source code)
4) In Eclipse create a remote debugging configuration:
a) Run –> Open Debug Dialog –> Remote Java Application –> New
b) Assign host = localhost and port = 8000
Allow temination of remote VM 选择上。
然后点击Debug按钮就可以debug了。
相关文章推荐
- eclipse快捷键Ctrl+Shift+i获取调试过程中方法返回值失效
- eclipse远程调试Tomcat方法(测试成功并且说说遇到的坑)
- Java开发调试技巧及Eclipse快捷键使用方法
- Eclipse Perl插件无法调试的解决方法
- eclipse调试的方法和技巧
- 各类Java heap space 解决方法,并通过java代码获取JVM的相关信息,所在操作系统的信息(包含eclipse&myeclipse的调试的内存设置)
- eclipse远程调试Tomcat方法
- 关于使用Eclipse调试Launcher的完美解决方法
- Ubuntu 下使用Eclipse编译、调试嵌入式程序的方法(下)
- eclipse远程调试Tomcat方法
- Eclipse调试断点的几种方法
- eclipse通过Remote Java Application调试Uiautomator的方法
- 使用eclipse远程调试加密卡方法
- eclipse调试方法
- Ubuntu 下使用Eclipse编译、调试嵌入式程序的方法
- Java 用eclipse调试老是提示Source not found解决方法——关联
- eclipse远程调试Tomcat方法(测试成功并且说说遇到的坑)
- Eclipse调试程序的方法
- eclipse远程调试Tomcat方法(测试成功并且说说遇到的坑)
- Eclipse编写和调试Applet程序,调试的时候Eclipse会自动调用Java "小程序查看程序",而不用嵌入到网页中查看运行效果。