Skip to content

Cancel debug from test explorer #23286

Closed

Description

  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.

Activity

  1. locked as resolved and limited conversation to collaborators on May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-testingbugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamverification-neededVerification of issue is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions