Finding out if application has debugger attached
Is there any way for a client application to be aware if it is being debugged?
Is there any way of asking the JVM if JVMTI clients are attached?
How about finding out what arguments were passed in to the JVM when it was launched?
I see that this question was asked a few months ago with no reply.
[321 byte] By [
tmoore41a] at [2007-11-26 15:24:51]

# 1
> Is there any way for a client application to be aware
> if it is being debugged?
I do not think so.
>
> Is there any way of asking the JVM if JVMTI clients
> are attached?
There is no interface for this in jvmti.
Interesting questions but not sure how this information is
used in client. Can you can explain how this information
is used in the client program.
>
> How about finding out what arguments were passed in
> to the JVM when it was launched?
ps command can show you the details of arguments
passed to jvm.
>
> I see that this question was asked a few months ago
> with no reply.