Skip to content

AttributeError when using Pdb in lldb's script interpreter #66356

@DavidSpickett

Description

@DavidSpickett

This was originally reported by LambdaKnight on Discord.

$ ./bin/lldb
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> breakpoint()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python3.8/pdb.py", line 1610, in set_trace
    pdb = Pdb()
  File "/usr/lib/python3.8/pdb.py", line 159, in __init__
    readline.set_completer_delims(' \t\n`@#$%^&*()=+[{]}\\|;:\'",<>?')
AttributeError: module 'lldb_editline' has no attribute 'set_completer_delims'

I think this is because our readline replacement lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp is too minimal. It would be great if this could be fixed so we can recommend Pdb as the go to for debugging anything Python related in lldb.

Stubbing out the method is the first step, then figuring out what it's supposed to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions