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