
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A pytest plugin to easily enable debugging tests within Visual Studio Code
.. image:: https://img.shields.io/pypi/v/pytest-vscodedebug.svg :target: https://pypi.org/project/pytest-vscodedebug :alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/pytest-vscodedebug.svg :target: https://pypi.org/project/pytest-vscodedebug :alt: Python versions
.. image:: https://travis-ci.com/tmuguet/pytest-vscodedebug.svg?branch=master :target: https://travis-ci.com/tmuguet/pytest-vscodedebug :alt: See Build Status on Travis CI
A pytest
_ plugin to easily enable debugging tests within Visual Studio Code.
Enables debugging a test session within Visual Studio Code, via attaching the debugger.
You can install "pytest-vscodedebug" via pip
_ from PyPI
_:
.. code-block:: bash
$ pip install pytest-vscodedebug
You will need to configure the debugging in Visual Studio Code, via editing .vscode/launch.json
:
.. code-block:: json
{
"configurations": [
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 10001,
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
}
]
}
You can enable pytest-vscodedebug when running tests with the --vscodedebug
flag:
.. code-block:: bash
$ py.test --vscodedebug test_testfile.py
By default, it will listen on port 10001, but you can change it via the --vscodedebug-port
option:
.. code-block:: bash
$ py.test --vscodedebug --vscodedebug-port=5001 test_testfile.py
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 🔥 <https://blog.theodo.com/2020/05/debug-flask-vscode/>
".
If you encounter any problems, please file an issue
_ along with a detailed description.
.. _adriencaccia
: https://github.com/adriencaccia
.. _MIT
: http://opensource.org/licenses/MIT
.. _file an issue
: https://github.com/tmuguet/pytest-vscodedebug/issues
.. _pytest
: https://github.com/pytest-dev/pytest
.. _pip
: https://pypi.org/project/pip/
.. _PyPI
: https://pypi.org/project
FAQs
A pytest plugin to easily enable debugging tests within Visual Studio Code
We found that pytest-vscodedebug demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.