如何在netbeans中调试JBOSS应用程序?
我有 .NET 背景,可以通过添加断点并构建/运行应用程序来轻松调试 Web 应用程序。
我正在开发 JAVA EJB3 应用程序。我已成功将 ejb 项目部署到服务器,但我想知道的是开发控制器和视图。为了做到这一点,我希望能够在 net beans 中运行/调试该项目。
我已将 JBOSS5 和 JBOSS6 添加到 IDE 中,但需要一分多钟才能启动。有时它完全挂起。当我运行 glassfish 时,我没有遇到这个问题 - 启动最多需要几秒钟。 PC 规格是最新的,它是 corei7,带 SSD 和 4GB RAM。
谢谢
I come from a .NET background where I can easily debug a web application by adding a breakpoint and building/running the application.
I'm working on a JAVA EJB3 application. I have successfully deployed ejb project to the server, but what I'd like to do know is develop controllers and views. In order to do that I'd like to be able to run/debug the project in net beans.
I have added both JBOSS5 and JBOSS6 into the IDE, but it takes over a minute to start. Sometimes it hangs completely. I don't have this issue when I run a glassfish - it takes few seconds at the most to start up. PC spec is up to date, it's corei7 with ssd and 4gb of RAM.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用远程调试如下:
8787
。启用远程调试;像往常一样设置断点。
或者按如下方式启用远程调试:
8787
。启用远程调试;像往常一样设置断点。
输出 - 调试器控制台面板应显示:
或者,在域模式下,按如下所示配置服务器的
host.xml
:Enable remote debugging as follows:
8787
.Remote debugging is enabled; set breakpoints as usual.
Or enable remote debugging as follows:
<jvm name="default">
8787
.Remote debugging is enabled; set breakpoints as usual.
The Output - Debugger Console panel should show:
Or, in domain mode, configure the server's
host.xml
as follows: