CuriousMind
CuriousMind

Reputation: 8903

Debugging Java program by going inside JVM?

I tried to find online, but didn't find answer. Usually we debug a Java program by breaking at some line of the application.

I want to know is there a way to debug a Java program by breaking at the entry point of JVM itself?

For example, to run a simple Java program, we can do:

java Foo

My question is, how can we debug what's going into JVM (by invoking java) before our class is loaded? Is there some way to achieve this?

Upvotes: 0

Views: 497

Answers (1)

Tarun
Tarun

Reputation: 723

You may use InTrace to instrument the Classloader classes which do the loading.

Below links might be helpful :

InTrace

DebugJVMIssuesOracleDocs

Upvotes: 1

Related Questions