设置远程调试(Setting up remote debugging)

编程入门 行业动态 更新时间:2024-10-27 18:20:02
设置远程调试(Setting up remote debugging)

我需要帮助来设置远程调试。 能否请您提供如何操作的说明? 我正在使用IntelliJ IDEA。

配置端口和主机后出错:

Error running liferay: Unable to open debugger port (localhost:8080): java.io.IOException "handshake failed - connection prematurally closed»

I need help in setting up remote debugging. Could you please provide me instructions on how to do this? I’m using IntelliJ IDEA.

I get an error after configuring port and host:

Error running liferay: Unable to open debugger port (localhost:8080): java.io.IOException "handshake failed - connection prematurally closed»

最满意答案

配置看起来正确,因此有两个选项可以解决它的原因:

您尝试连接到服务器的错误调试端口。 如果运行Tomcat,请检查负责调试模式的JPDA_ADDRESS 。

您只需在非调试模式下运行服务器。 如果你像这样使用Tomcat启动服务器:

在窗户上

$ catalina.bat jpda start

在Linux / Unix上

$ catalina.sh jpda start

Configuration looks correctly, so there are two options why it is not working:

You try to connect to the wrong debugging port of your server. If you run Tomcat check JPDA_ADDRESS that responsible for debugging mode.

You just run your server in not debugging mode. If you use Tomcat start server like this:

On windows

$ catalina.bat jpda start

On Linux/Unix

$ catalina.sh jpda start

更多推荐

本文发布于:2023-08-07 20:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465650.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Setting   remote   debugging

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!