远程debug

在服务器上设置远程debug

nohup java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=debug端口号 xxxx.jar > xxxx.log 2>&1 &

在idea设置

注意事项:

  • 阿里云需配置远程debug的端口安全组
  • 若服务器防火墙开启了,需放行端口或关闭防火墙
posted @ 2021-08-06 18:52  shouyaya  阅读(126)  评论(0编辑  收藏  举报