idea如何开启远程调试

一:打包需要部署的jar包上传到服务器

二:服务器(开启远程调试接口)

nohup java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8453 xxx.jar > xxx.log 2>&1 & 

三: idea配置remote
idea如何开启远程调试_第1张图片

idea如何开启远程调试_第2张图片
上面的Host填写服务器地址,port填写你部署jar包时候开放的端口(8453),并且记得开放防火墙的端口,不然外部访问不到。

你可能感兴趣的:(Linux,pycharm,ide,python)