pytest-vscodedebug

A pytest plugin to easily enable debugging tests within Visual Studio Code


License
MIT
Install
pip install pytest-vscodedebug==0.1.0

Documentation

pytest-vscodedebug

PyPI version

Python versions

See Build Status on Travis CI

A pytest plugin to easily enable debugging tests within Visual Studio Code.

WARNING: this is obsolete. VSCode supports debugging tests via configuration, e.g.:

Such configuration will be used when debugging from the "Testing" panel of VSCode.

Features

Enables debugging a test session within Visual Studio Code, via attaching the debugger.

Installation

You can install "pytest-vscodedebug" via pip from PyPI:

You will need to configure the debugging in Visual Studio Code, via editing .vscode/launch.json:

Usage

You can enable pytest-vscodedebug when running tests with the --vscodedebug flag:

By default, it will listen on port 10001, but you can change it via the --vscodedebug-port option:

License

Distributed under the terms of the MIT license, "pytest-vscodedebug" is free and open source software.

This code is largely based on adriencaccia's tutorial "Flask Debugging in VS Code with Hot-Reload 🔥".

Issues

If you encounter any problems, please file an issue along with a detailed description.