Skip to content

Cancel debug from test explorer #23286

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

Closed
eleanorjboyd opened this issue Apr 23, 2024 · 0 comments · Fixed by #23262
Closed

Cancel debug from test explorer #23286

eleanorjboyd opened this issue Apr 23, 2024 · 0 comments · Fixed by #23262
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team verification-needed Verification of issue is requested

Comments

@eleanorjboyd
Copy link
Member

  1. create a folder, open vscode
  2. create a python test file like test_ex.py
  3. add a test inside like so
def test_random():
    assert True;
  1. create a venv

  2. install pytest (python -m pip install pytest)

  3. click on the test explorer tab

  4. select pytest and root dir (".")

  5. add a breakpoint to your test

  6. from the test explorer click debug next to the test (so run with debug)

  7. wait for the breakpoint to be hit, it should now pop up with the debug menu
    Screenshot 2024-04-23 at 10 46 17 AM

  8. go back to the text explorer tab, use the "cancel" button here

  9. 🐛 this button does not cancel the debug session (see the square button below)
    Screenshot 2024-04-23 at 10 46 20 AM

To verify:
follow all the steps above but when you click the cancel button in the test explorer verify that the debug session is canceled.

@eleanorjboyd eleanorjboyd added bug Issue identified by VS Code Team member as probable bug area-testing verification-needed Verification of issue is requested labels Apr 23, 2024
@eleanorjboyd eleanorjboyd self-assigned this Apr 23, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team verification-needed Verification of issue is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant