远程调试码头(没有mvn,没有插件) [英] Remote debug Jetty (no mvn, no plugins)

查看:129
本文介绍了远程调试码头(没有mvn,没有插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去的场景

- 使用Tomcat并从调试模式开始远程调试使用Eclipse。

- 定义端口并与此调试/远程端口中的eclipse连接。

- 用于调试其他主机/服务器中的服务器

Past scenario
- Work with Tomcat and start in debug mode and Remote Debug with Eclipse.
- Define a port and connect with eclipse in this debug/remote port.
- Use to debug servers in other hosts/servers

今天场景

现在,我正在使用 Jetty 尝试做同样的事情,但没有成功,任何人都可以帮助我吗?


我没有使用Maven,并不想从我的Eclipse中启动Jetty。

Today scenario
Now, I'm using Jetty and I've try to do the same, but with no success, could anyone help-me with that?
I did not use Maven, and did not want to start Jetty inside from my Eclipse.

环境:

Windows XP

Java V. 5

Jetty V. 6.1.15

Environment:
Windows XP
Java V. 5
Jetty V. 6.1.15

链接:

http:// docs.codehaus.org/display/JETTY/Debugging < br>
这没有帮助我!

http:// docs.codehaus.org/display/JETTY/Debugging+Jetty+with+Eclipse

http:/ / neelzone.wordpress.com/2007/06/18/jetty-and-eclipse-integration

这些是在
Eclipse

Links:
http:// docs.codehaus.org/display/JETTY/Debugging
This did not help me!
http:// docs.codehaus.org/display/JETTY/Debugging+Jetty+with+Eclipse
http:// neelzone.wordpress.com/2007/06/18/jetty-and-eclipse-integration
These are to start inside Eclipse

推荐答案

这是我们在开发过程中添加到我们的JBoss命令行:

This is what we are adding to our JBoss command line while development:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

然后我们启动eclipse远程调试和连接到这个端口。

Then we launch the eclipse remote debugging and connection to this port.

更新:

从jar(s tandalone)执行以下

To run from jar (standalone) do the following

java -Xdebug -Xrunjdwp:transport=dt_socket,address=8585,server=y,suspend=n -jar start.jar 

这篇关于远程调试码头(没有mvn,没有插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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