1. 在idea设置remoteidea 远程调试java application
  2. 远程运行java程序,添加参数“-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5601”
  3. 在idea中点击debug按钮   

 

注意,idea远程调试需要先让remote端运行起来,所以有的时候想一进入程序就调试,需要在main中加入sleep,这样让remote端运行起来,idea端再点击debug才来得及

相关文章:

  • 2021-08-18
  • 2021-06-16
  • 2021-12-26
  • 2021-09-01
  • 2021-10-26
  • 2019-12-19
  • 2021-08-01
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-12-31
  • 2022-12-23
  • 2021-10-12
  • 2021-08-05
相关资源
相似解决方案