firefox-devtools / firefox-devtools/vscode-firefox-debug

Connection refused while using Nvim DAP

Open
#306 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Hey! I'm trying to debug in firefox, but every time I try running I receive this error: `Error on launch: connect ECONNREFUSED ::1:6000`
I verified the debug server is running on port 6000 by running `lsof -i 6000` and my configuration looks like this:

```lua
dap.adapters.firefox = {
type = "executable",
command = "node",
args = { os.getenv("HOME") .. "/apps/vscode-firefox-debug/dist/adapter.bundle.js" },
}
```

Then the launch configuration:

```lua
{
name = "Debug with Firefox",
type = "firefox",
request = "launch",
reAttach = true,
url = "http://localhost:3000",
webRoot = "${workspaceFolder}",
firefoxExecutable = "/usr/bin/firefox",
},
```

I have all the necessary `about:config` variables set, but the connection is always refused, is there something I have to change?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.