Using the NetBeans IDE to set breakpoints and inspect variables while your program is running. I use a student's program which was throwing an IllegalArgumentException, read the stack trace, and then use a breakpoint to figure out what was going wrong. A big thanks to James for permission to use his code!