Show More
@@ -595,6 +595,7 b' class Pdb(OldPdb):' | |||||
595 | argument (which is an arbitrary expression or statement to be |
|
595 | argument (which is an arbitrary expression or statement to be | |
596 | executed in the current environment). |
|
596 | executed in the current environment). | |
597 | """ |
|
597 | """ | |
|
598 | trace_function = sys.gettrace() | |||
598 | sys.settrace(None) |
|
599 | sys.settrace(None) | |
599 | globals = self.curframe.f_globals |
|
600 | globals = self.curframe.f_globals | |
600 | locals = self.curframe_locals |
|
601 | locals = self.curframe_locals | |
@@ -605,7 +606,7 b' class Pdb(OldPdb):' | |||||
605 | self.message("ENTERING RECURSIVE DEBUGGER") |
|
606 | self.message("ENTERING RECURSIVE DEBUGGER") | |
606 | sys.call_tracing(p.run, (arg, globals, locals)) |
|
607 | sys.call_tracing(p.run, (arg, globals, locals)) | |
607 | self.message("LEAVING RECURSIVE DEBUGGER") |
|
608 | self.message("LEAVING RECURSIVE DEBUGGER") | |
608 |
sys.settrace( |
|
609 | sys.settrace(trace_function) | |
609 | self.lastcmd = p.lastcmd |
|
610 | self.lastcmd = p.lastcmd | |
610 |
|
611 | |||
611 | def do_pdef(self, arg): |
|
612 | def do_pdef(self, arg): |
General Comments 0
You need to be logged in to leave comments.
Login now