Debugging techniques

Some useful techniques for finding and fixing problems.

Stacktrace

When you get an error, it should tell you which line it occurred on and list the lists the previous chain of functions that were called to get there. Learning to read this output and jump to the offending lines will help you quickly fix problems.

You may need to enable debugging out put or increase the verbose settings to see the full stacktrace.

The stacktrace is also visible in a step debugger to tell you where you are. You can click back through the previous calls to inspect parameters that were passed or how values have changed.

Topics