Issue 684944: extend readline functionality in pdb (original) (raw)

Created on 2003-02-11 22:09 by mbrierst, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patchpdb2 mbrierst,2003-02-11 22:15
Messages (4)
msg42825 - (view) Author: Michael Stone (mbrierst) Date: 2003-02-11 22:09
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.
msg42826 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2005-01-09 15:11
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.
msg42827 - (view) Author: Adam Monsen (meonkeys) Date: 2005-10-11 17:25
Logged In: YES user_id=259388 jlgijsbers, do you mean that if a user typed (Pdb) help d only help topics that started with 'd' would autocomplete? And similarly for other pdb commands?
msg81855 - (view) Author: Michael Stone (mbrierst) Date: 2009-02-13 02:49
ajaksu2, I think you just changed the status of this to "test needed". I don't think a unit test for this functionality is possible if that's what you mean, as it is an interactive feature involving readline completion at the interactive prompt only. It's been a long time since I posted this patch, and I don't really mind if you just close the issue. There obviously hasn't been a lot of interest since 2003.
History
Date User Action Args
2022-04-10 16:06:44 admin set github: 37968
2009-02-13 02:53:39 benjamin.peterson set status: open -> closedresolution: rejected
2009-02-13 02:49:41 mbrierst set nosy: + ajaksu2messages: +
2009-02-13 02:35:03 ajaksu2 set stage: test neededtype: enhancementversions: + Python 2.7, - Python 2.3
2003-02-11 22:09:36 mbrierst create