Sometimes, while debugging Java Code I find myself doing the following to find bugs:
Is there a tool that makes this job easier by recording the code flow path in a file and comparing two such files?
CTRL + ALT + H shows you the call hierarchy for a method. Perhaps that's what you wanted. So it you highlight a method and click CTRL + ALT + H, it shows, in the Call Hierarchy window, all the methods the call that method, and for each of those methods, all the methods that call them, and so on ...
The Java Debugger, jdb, is a simple command-line debugger for Java classes. It is a demonstration of the Java Platform Debugger Architecture that provides inspection and debugging of a local or remote Java Virtual Machine.
Try using something like emma, it is a unit test code coverage tool which should be able to tell you which classes have unused or untested code paths.
There is a plugin available for eclipse that should provide a pretty concise report.
You can use logging. If you code path traversers libraries with source code out of your control you can set a conditional breakpoint that prints some message and returns false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With