easymode.debug

Tools for debugging python applications

easymode.debug.stack_trace(depth=None)

returns a print friendly stack trace at the current frame, without aborting the application.

Parameters:depth – The depth of the stack trace. if omitted, the entire stack will be printed.

usage:

print stack_trace(10)

easymode.debug.middleware