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.
精彩评论