Add command completion for the remote debugger client

This commit is contained in:
Kovid Goyal 2014-03-30 15:54:29 +05:30
parent 22fdc186f6
commit 346d22b078

View File

@ -114,6 +114,10 @@ def cli(port=4444):
except IOError:
pass
atexit.register(readline.write_history_file, histfile)
p = pdb.Pdb()
readline.set_completer(p.complete)
readline.parse_and_bind("tab: complete")
try:
while True:
recvd = b''