Debugging
Application.printStacktrace(String) prints a stacktrace - very useful for finding where code is being called from
Application.debug(Object) prints a nice debug string for Object Application.debug(Object,1) prints in red
Using Eclipse
- ctrl-shift-O automatically sorts out imports eg if you type
Application.debug(var);
and there's no import for geogebra.main.Application
- F3 follows a function call (or ctrl-click)
- ctrl-shift-G finds all calls to a function
- ctrl-shift-T lets you search for a class very quickly
- The arrows at the top let you go back and forward to edit locations (or Alt-LEFT & Alt-RIGHT )
- ctrl-F11 run last thing that was run
- ctrl-I auto-indents selected text
- Package Explorer -> Package Presentation -> Hierarchical gives a more useful tree view
Profiling: TPTP: (doesn't work in latest Eclipse) http://www.vogella.de/articles/EclipseTPTP/article.html
JVMMonitor: http://www.jvmmonitor.org/
