Skip to content

Debugging

jomo edited this page Jul 24, 2014 · 2 revisions

If you want to catch all exceptions (e.g. for debugging), do not use catch Exception.
Since we're using jython, this will not catch Java exceptions.

To get a more useful traceback, use this:

from traceback import format_exc as trace
try:
  #code
except: # everything
  print(trace())
Clone this wiki locally