mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge branch 'force_pdb_up' of https://github.com/vlegoff/evennia into vlegoff-force_pdb_up
This commit is contained in:
commit
eb6ec63216
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue