Java插件不附加到Eclipse中的调试会话 [英] Java plugin does not attach to debug session in Eclipse

查看:141
本文介绍了Java插件不附加到Eclipse中的调试会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个功能用来工作,现在好像坏了,我不知道如何诊断它。
我正在开发一个在浏览器中运行的Java Applet。我曾经在java控制台中设置运行时参数(Windows平台):



-Djava.compiler = NONE -Xnoagent -Xdebug -Xrunjdwp:transport = dt_socket, address = 8000,server = n,suspend = n



此设置显示在Java控制台的用户和系统选项卡中。



然后我将在eclipse中为我的applet项目启动一个调试会话,并将其设置为侦听端口8000.当我启动浏览器并且applet被加载时,它将附加到eclipse,并且我能够调试并设置断点等。



现在看来,这不再发生。当我在Eclipse中启动调试会话时,我看到LISTENING模式下的端口,由javaw.exe拥有,这是正确的。唯一的问题是,当浏览器加载Java插件时,它不符合运行时参数,并且不连接到eclipse中的侦听调试会话。



I安装最新的Java更新。



还有什么我应该注意的?

解决方案

我刚刚解决了我的问题。
我编辑:
C:\users\\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
并添加参数如下: / p>

deployment.javaws.jre.0.args = -Djava.compiler\ = NONE -Xnoagent -Xdebug -Xrunjdwp\:transport\ = dt_socket,address\ = 8000,server\ = n,suspend\ = n



当我通过UI添加运行时参数时,他们去了
deployment.javaws .jre.1.args,所以我把它们复制到deployment.javaws.jre.0.args中。


this functionality used to work and now it seems broken, I a do not know how to diagnose it. I am developing a java Applet that runs in a browser. I used to set up the runtime parameters in the java console to (Windows platform):

-Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=n,suspend=n

This setting appears both in the User and System tabs in the Java console.

Then I would start a debug session in eclipse for my applet project and set it to listen on port 8000. When I launch the browser and the applet is loaded, it would attach to eclipse and I was able to debug and set breakpoints, etc.

Now, it seems that this is no longer happening. When I launch the debug session in Eclipse, I do see port in LISTENING mode and owned by javaw.exe, which is correct. The only problem is that when the browser loads the Java plugin, it does not honor the "Runtime Parameters" and does not connect to the listening debug session in eclipse.

I have the latest Java update installed.

What else should I be looking into?

解决方案

I just resolved my issue. I edited: C:\users\\AppData\LocalLow\Sun\Java\Deployment\deployment.properties and added the pararameters as follows:

deployment.javaws.jre.0.args=-Djava.compiler\=NONE -Xnoagent -Xdebug -Xrunjdwp\:transport\=dt_socket,address\=8000,server\=n,suspend\=n

When i added the runtime parameters through the UI, they went to "deployment.javaws.jre.1.args" so I duplicated them into "deployment.javaws.jre.0.args"

这篇关于Java插件不附加到Eclipse中的调试会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆