> On Sat, Apr 23, 2011 at 1:07 PM, LRN <
lrn1...@gmail.com> wrote:
> > The attached patch adds a 'gdb' command to rpdb. It enables gdb mode.
> > Well, maybe 'gdb' is not a good name, but since my motivation was to make
> > rpdb2 more gdb-like, it will do for now.
> > Changes in this mode:
> > 1) pressing 'Enter' (entering empty line) will repeat last command
> > (actually, this is default behaviour for cmd module, i have no idea why
> > rpdb2 disables it)
> > 2) whenever the debugger breaks it will print current line. That happens
> > after 'n' and 's' commands, when 'g' ends on a breakpoint, etc. The
> > presentation is not handled very well, because rpdb2 won't wait for this to
> > happen and will display another prompt, which will then be overridden by the
> > line being printed, if the break didn't happen immediately, and the command
> > the user will be entering next will start at a new (empty) line (or, if
> > you're unlucky, the line will be printed in the middle of whatever you've
> > been typing). But in practice this shouldn't be much of a problem (and
> > fixing that might require cmd module hacking, which is not a good thing, so
> > i'd let it be).
>
> > The patch is tested on Windows with Python 3.2.
>
patch to use 2.x "" % {}-style formatting instead. Unfortunately, as
only things that are so commonplace that i didn't notice adding them).