Can Java applications detect whether the debugger is attached?

I know that the (JVM) startup option lets the JVM wait until the debugger is connected - that's not what I mean

Can I detect debugger attachments from Java code so that I can Write a "script" that is doing something and then at some point make my application wait for the debugger?

Solution

No Option is a JVM option that will not execute Javacode until the debugger connects However, you can let the application start and rotate a variable on a variable. You can set a variable from the debugger to let your application continue

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>