Show More
@@ -320,6 +320,18 b' class Pdb(OldPdb):' | |||
|
320 | 320 | except KeyboardInterrupt: |
|
321 | 321 | self.stdout.write("\n" + self.shell.get_exception_only()) |
|
322 | 322 | |
|
323 | def precmd(self, line): | |
|
324 | """Perform useful escapes on the command before it is executed.""" | |
|
325 | ||
|
326 | if line.endswith('??'): | |
|
327 | line = 'pinfo2 ' + line[:-2] | |
|
328 | elif line.endswith('?'): | |
|
329 | line = 'pinfo ' + line[:-1] | |
|
330 | ||
|
331 | line = super().precmd(line) | |
|
332 | ||
|
333 | return line | |
|
334 | ||
|
323 | 335 | def new_do_frame(self, arg): |
|
324 | 336 | OldPdb.do_frame(self, arg) |
|
325 | 337 |
General Comments 0
You need to be logged in to leave comments.
Login now