Java 使用IntelliJ进行远程调试
我需要有关intell J IDE上远程调试选项的帮助,我已成功连接Digital Oceans VM提供的远程主机,但我无法从IDE开始调试 下面的图片显示了本地计算机上的正确连接(Ubuntu 18.04): 之前,我在远程主机(Ubuntu 18.04)上设置了Spring Boot的VM执行: 然后,我将来自我的邮递员的请求发送到端点以开始调试,但远程服务器上的应用程序和IDE中的应用程序均未发生任何变化。 我在没有transport的VM参数的情况下进行测试,以验证来自postman的调用和应用程序的响应,但当我输入这些参数时,postman无法带着他的请求到达 需要了解的重要事项:Java 使用IntelliJ进行远程调试,java,intellij-idea,remote-debugging,Java,Intellij Idea,Remote Debugging,我需要有关intell J IDE上远程调试选项的帮助,我已成功连接Digital Oceans VM提供的远程主机,但我无法从IDE开始调试 下面的图片显示了本地计算机上的正确连接(Ubuntu 18.04): 之前,我在远程主机(Ubuntu 18.04)上设置了Spring Boot的VM执行: 然后,我将来自我的邮递员的请求发送到端点以开始调试,但远程服务器上的应用程序和IDE中的应用程序均未发生任何变化。 我在没有transport的VM参数的情况下进行测试,以验证来自postman
- 本地计算机运行openjdk版本“1.8.0_222”(Ubuntu 18.04)
- 远程debbug的选项
- 在调试器菜单上,这是我的选项(本地m):
- 远程机器openjdk版本“11.0.4”(Ubuntu 18.04)
- 来自远程主机的Java debbug
- 从本地主机进行Java调试
- 通过激活选项的IDE(IntellJ)登录(-Didea.debugger.trace=ALL)
- 在Digital Ocean VM的“我的防火墙设置”上
感谢社区,再见 您可以检查以尝试查找其被卡住的更多详细信息。还可以使用获取线程转储以查看应用程序在您的服务器上正在执行的操作以及为什么没有响应。线程转储可能有助于识别问题。@CrazyCoder我按照您的话做了,但显然没有显示任何方式来说明问题出在何处请参阅java调试器日志(远程计算机)的第一部分在boy Answer上编辑您可以通过pastebin共享调试器日志和jstack输出,以便其他人可以检查。@CrazyCoder Reydy我已经用尽可能完整的信息进行了更新
.../target# java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar balak-cliente-rest-0.0.1-SNAPSHOT.jar
Listening for transport dt_socket at address: 5005
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.6.RELEASE)
2019-09-22 18:22:55.904 INFO 11937 --- [ main] c.t.s.app.ClienteRestApplication : Starting ClienteRestApplication v0.0.1-SNAPSHOT on desarrollosfelipeinostroza with PID 11937 (/desarrollos/balak/tudicom-ws-rest/target/balak-cliente-rest-0.0.1-SNAPSHOT.jar started by root in /desarrollos/balak/tudicom-ws-rest/target)
2019-09-22 18:22:55.922 INFO 11937 --- [ main] c.t.s.app.ClienteRestApplication : No active profile set, falling back to default profiles: default
2019-09-22 18:23:02.905 INFO 11937 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.ws.config.annotation.DelegatingWsConfiguration' of type [org.springframework.ws.config.annotation.DelegatingWsConfiguration$$EnhancerBySpringCGLIB$$5e2153d6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-09-22 18:23:03.531 INFO 11937 --- [ main] .w.s.a.s.AnnotationActionEndpointMapping : Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
2019-09-22 18:23:04.897 INFO 11937 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7171 (http)
2019-09-22 18:23:05.135 INFO 11937 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-09-22 18:23:05.137 INFO 11937 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.21]
2019-09-22 18:23:05.614 INFO 11937 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-09-22 18:23:05.618 INFO 11937 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 9280 ms
2019-09-22 18:23:07.371 INFO 11937 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2019-09-22 18:23:08.479 WARN 11937 --- [ main] o.s.x.transform.TransformerFactoryUtils : http://javax.xml.XMLConstants/property/accessExternalDTD property not supported by org.apache.xalan.processor.TransformerFactoryImpl
2019-09-22 18:23:08.479 WARN 11937 --- [ main] o.s.x.transform.TransformerFactoryUtils : http://javax.xml.XMLConstants/property/accessExternalStylesheet property not supported by org.apache.xalan.processor.TransformerFactoryImpl
2019-09-22 18:23:08.844 INFO 11937 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7171 (http) with context path ''
2019-09-22 18:23:08.853 INFO 11937 --- [ main] c.t.s.app.ClienteRestApplication : Started ClienteRestApplication in 16.567 seconds (JVM running for 18.499)