动态调试 别人写的jar包

在别人的jar应用程序里:

在VMoption选项中添加:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=50064

或者:

-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=50064

然后使用idea 工具:  添加远程调试配置

 

原文地址:https://www.cnblogs.com/dzqdzq/p/11295788.html