Skip to content

[Errno 111] Connection refused - lldb Adapter #296

@Wickan-lab

Description

@Wickan-lab

Hello, I was trying out this plugin to see if I could make my life easier, like in vscode :D
However, I get this error when I try to debug a c++ program.

Debugger: error: tcp://localhost:41701 [Errno 111] Connection refused Traceback (most recent call last): File "/home/omen/.config/sublime-text/Packages/Debugger/modules/dap/session.py", line 160, in launch await self.launching_async File "/home/omen/.config/sublime-text/Packages/Debugger/modules/dap/session.py", line 197, in _launch await self._transport.start(self, self.configuration, self.log) File "/home/omen/.config/sublime-text/Packages/Debugger/modules/dap/transport.py", line 120, in start await self.setup() File "/home/omen/.config/sublime-text/Packages/Debugger/modules/dap/transports.py", line 209, in setup raise TransportConnectionError(f'tcp://{self.host}:{self.port} {exception}') Debugger.modules.dap.transport.TransportConnectionError: tcp://localhost:41701 [Errno 111] Connection refused

This is the sublime project config
"debugger_configurations": [ { "name": "C++ (External Terminal)", "type": "lldb", "request": "launch", "program": "${project_path}/build/extractor", "cwd": "${project_path}", "terminal": "console", }, ],

I'm on NixOS 25.05 and the lldb package (lldb_21) is provided by a flake/direnv development environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions