jar调试
作者:互联网
在IDEA内新建项目,在项目中新建一个lib目录将jar包放到此处,右键lib文件点击Add as Library添加依赖。

添加运行时的启动参数


这里为jar包的启动参数,随后点击Apply

在jar的main处设置断点,随后在lib目录下打开cmd,输入“Java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005”其中的suspend表示是否赞同顶戴调试器的连接,y为暂停,n为不暂停。建议选择暂停。

jar成功停止,调试成功
标签:ratio,img,image,jar,crop,png,调试 来源: https://blog.csdn.net/Munch_D_Rudy/article/details/122457368