1.首先启动jar包时增加  -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000参数
  启动示例:java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar .\demo.jar
    
2.在IDEA中增加远程连接
   java远程DEBUG

java远程DEBUG

 

java远程DEBUG

java远程DEBUG

最后在IDEA中启动即可,就像是在本地DEBUG那样远程调试了

相关文章:

  • 2021-06-09
  • 2022-01-18
  • 2021-09-12
猜你喜欢
  • 2021-11-05
  • 2021-12-21
  • 2021-05-14
  • 2021-12-10
  • 2021-04-29
  • 2022-01-13
相关资源
相似解决方案