Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Debugger fails on tests exit. #5099

Closed
Closed
@CMLL

Description

@CMLL

Environment data

  • VS Code version: 1.32.3
  • Extension version (available under the Extensions sidebar): 2019.3.6352
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.15
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pyenv virtualenv
  • Relevant/affected Python packages and their versions: pytest

Expected behaviour

When I set a test case debugger and ran the test, the execution stops as expected in the breakpoint, but after hitting continue an UncaughtException breakpoint is raised in the testlauncher.py file.

Removing the UncaughtExceptions option from the debugger works as expected and this is not raised but is something usefult to have enabled.

I'm using pytest as testing framework.

Steps to reproduce:

  1. Create a pytest file with a simple test.
  2. Drop a breakpoint somewhere in the test.
  3. Debug the test.
  4. When it reaches the breakpoint, hit continue.
  5. Uncaught exception triggers breakpoint.

Logs

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions