Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Connection refused while using Nvim DAP

Open
#306 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
nodejs, typescript
Domain
devtools

Research direction

Start with the shown dap.adapters.firefox executable configuration and launch configuration, then reproduce the ECONNREFUSED error against port 6000. Trace the adapter connection to the Firefox debug server using the referenced adapter.bundle.js entry point; done means the supplied Nvim DAP setup launches Firefox without the connection refusal.

Written by the indexing model from the issue text.

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:

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

Then the launch configuration:

	{
		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?

Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firefox-devtools/vscode-firefox-debug

All issues in firefox-devtools/vscode-firefox-debug

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.