Getting a call hierarchy in java
I am having real trouble tracking down a bug and it would help be a lot to know which method called a certain method. Is there an easy way to get a call hierarchy from java? Java is a small part of the app so I cannot compile and run the whole app in eclipse/net beans so I don't have access to an IDE debugger's call hierarchy. Thread.currentThread().getStackTrace(); or Exception ex = new Exception(); ex.printStackTrace(); It's fairly slow, but fine for debugging purposes. API docs here . Java is a small part of the app so I cannot compile and run the whole app in eclipse/net beans so I don't