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

Duplicate path error suddenly appears on debugging only

Open
#1,533 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the issue in the stated environment: debugpy 1.5.1 on Windows 10 with Python 3.8.17 in VS Code, using the described "Debug test" action. Investigate the duplicate PATH message and hang; done means debugging a test completes without the error or hang. No source files or test paths are identified in the issue.

Written by the indexing model from the issue text.

Description

bug

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

Environment data

  • debugpy version: 1.5.1 (run import debugpy; print(debugpy.__version__) if uncertain)
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.17
  • Using VS Code or Visual Studio:
    VS Code

Actual behavior

Invalid message: Found duplicate in "env": PATH box appears when debugging a test. Running tests works just fine. Debugging hangs after that.

Expected behavior

Debugging works, doesn't produce an error message, and doesn't hang

Steps to reproduce:

  1. Right click on icon in a testing file and select "Debug test"
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.