From c6aba5f802458528a7a8bcca72821ea1cc65a55d Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 14 Sep 2018 22:24:53 +0200 Subject: [PATCH] Minor refinement of code comment --- evennia/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/evennia/__init__.py b/evennia/__init__.py index 01bec176a1..6858744d42 100644 --- a/evennia/__init__.py +++ b/evennia/__init__.py @@ -365,9 +365,6 @@ 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. - # + # Start debugger, forcing it up one stack frame (otherwise `set_trace` will start # debugger at + # this point, not the actual code location) dbg.set_trace(sys._getframe().f_back)