Merge branch 'force_pdb_up' of https://github.com/vlegoff/evennia into vlegoff-force_pdb_up

This commit is contained in:
Griatch 2018-09-14 22:15:54 +02:00
commit eb6ec63216

View file

@ -365,7 +365,9 @@ def set_trace(debugger="auto", term_size=(140, 40)):
import pdb
dbg = pdb.Pdb(stdout=sys.__stdout__)
# Force the debugger to go up one frame
# (Otherwise, `set_trace` will be placed on this function, not the call)
#
# stopped at breakpoint. Use 'n' (next) to continue into the code.
#
dbg.set_trace()
dbg.set_trace(sys._getframe().f_back)