Tuesday, March 19, 2013

Poor Man's Debugger

The simplest java debugger:

new Exception().printStackTrace();

You can put this anywhere in your java code and see just how you got there. Very simple and very effective.

No comments: