Minor refinement of code comment

This commit is contained in:
Griatch 2018-09-14 22:24:53 +02:00
parent eb6ec63216
commit c6aba5f802

View file

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