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

DEBUGPY_ADAPTER_ENDPOINTS being invalid should output an error

Open
#1,866 13 comments 0 reactions 1 assignee View on GitHub

@StellaHuang95 is already working on this.

Since Mar 8, 2025.

Assessment

This issue has not been assessed yet.

Description

bug needs repro

Before creating a new issue, please check the FAQ to see if your question is answered there.

Environment data

  • debugpy version: 1.8.7
  • OS and version: CentOS 8.5
  • Python version: Python 3.10.15 from conda-forge
  • Using VS Code or Visual Studio: --

Actual behavior

I'm starting debugby from the command line using

$ python -m debugpy --log-to-stderr --listen 127.0.0.1:5799 --wait-for-client -c 'print("hello world!")'

The adapter appears to be started and it reports the port number 5799 but when I want to connect to the port I get ECONNREFUSED in vscode. If I check with netstat the port is not open. If I list the running processes the debugpy adapter is not among them so my guess is that it fails right after opening the port.

When I run the above command with sudo, the adapter is started up correctly and the port can be accessed, the adapter process is listed by ps

Expected behavior

Adapter start up properly in user mode

Steps to reproduce:

I'm no aware of any way to reproduce the error outside my server. I've disample SELinux to make sure ports can be opened by user mode processes to no avail. This is an issue that started happening a few days ago and I'm not aware of any system updates.

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

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 microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.