Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error "Failed to launch debug..." pops up when debug unit test. #8120

Open
linette-zyy opened this issue Dec 31, 2024 · 2 comments
Open
Assignees

Comments

@linette-zyy
Copy link

Environment
Image

Steps to Reproduce

  1. Create a new python project, right-click project, select Add > New Item …, then select "Python Unit Test" followed by "Add"

  2. Enabled unittest

  3. Set breakpoints in the test which you want to debug
    Image

  4. In TE, select the test and right-click to select Debug Selected tests

  5. Check that breakpoints are hit
    Expected behavior
    The breakpoints are hit

Additional context and screenshots
An error pops up.
Image

@StellaHuang95
Copy link
Contributor

@linette-zyy This is working for me in the latest version. It seems similar to the other formatter issue where PTVS might not detect a valid interpreter or environment. Could you please try again with the correct Python environment being selected and configured, and see if it repros?

@linette-zyy
Copy link
Author

@StellaHuang95 I verify this issue on today's build.
Image
It is not repro. It can hit the breakpoints
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants