开发者

Java Debug Confusion [duplicate]

开发者 https://www.devze.com 2023-02-18 05:24 出处:网络
This question already has answers here: 开发者_如何学Go Debug a java application without starting the JVM with debug arguments
This question already has answers here: 开发者_如何学Go Debug a java application without starting the JVM with debug arguments (5 answers) Closed 7 years ago.

Is a Java program debuggable only when the VM is running in Debug Mode?

Is there any way to change it at runtime?


No, there's no way to change it at runtime.

If at all possible, you will have to use a profiler

  • Trace java application at runtime


I don't believe you can suddenly debug if it's not compiled with the -g option. Your only option is to recompile and redeploy. But once it's in place you can debug at will.

0

精彩评论

暂无评论...
验证码 换一张
取 消