Reputation: 8903
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
Reputation: 723
You may use InTrace to instrument the Classloader classes which do the loading.
Below links might be helpful :
Upvotes: 1