[Patches] [ python-Patches-684944 ] extend readline functionality in pdb

SourceForge.net noreply at sourceforge.net
Tue Oct 11 19:25:11 CEST 2005


Patches item #684944, was opened at 2003-02-11 14:09
Message generated for change (Comment added) made by meonkeys
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=684944&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Stone (mbrierst)
Assigned to: Johannes Gijsbers (jlgijsbers)
Summary: extend readline functionality in pdb

Initial Comment:

This patch allows readline completion of
global and local variables while running code
under pdb.

Currently completion only works
with the builtin pdb commands when in pdb.
This patch uses the default pdb completer (in cmd.Cmd)
to preserve the old completions, but adds completions
in the current pdb execution frame.

Patch is against current cvs.

Let me know what you think.

----------------------------------------------------------------------

Comment By: Adam Monsen (meonkeys)
Date: 2005-10-11 10:25

Message:
Logged In: YES 
user_id=259388

jlgijsbers, do you mean that if a user typed

(Pdb) help d<TAB><TAB>

only help topics that started with 'd' would autocomplete?
And similarly for other pdb commands?

----------------------------------------------------------------------

Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2005-01-09 07:11

Message:
Logged In: YES 
user_id=469548

I like the idea, but the implementation is currently too
inclusive. It does completion the same for all commands,
even for those where that doesn't make sense, such as
enable, disable and quit. I'd accept a patch that used
'complete_*' functions for the individual commands where the
completion makes sense. Let me know if you're still
interested on working on this.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=684944&group_id=5470


More information about the Patches mailing list