Follow the steps below for setup:
git clone https://github.com/microsoft/vscode-python-debugger
cd vscode-python-debugger
npm ci
Create virtual environment as appropriate for your shell or use the command Python: Create Environment
in VS Code. Then activate it appropriate for your shell.
python3 -m venv .venv
# Activate the virtual environment
# ".venv/Scripts/activate.bat"
# On bash/zsh it's ...
source .venv/bin/activate
Install then setup with nox.
python3 -m pip install nox
nox --session setup_repo
If you encounter any issues, please report them using the GitHub Issues page. Provide as much detail as possible, including steps to reproduce the issue and any relevant logs or screenshots. We also recommend using the Report Issue command in VS Code, selecting Python Debugger as the extension. This helps automatically attach crucial information.
- Fork the repository and create your branch from
main
. - If you've added code that should be tested, add tests.
- Ensure the test suite passes.
- Make sure your code passes linting and formatting requirements
- Submit a pull request.
To run tests, use the following commands:
npm run compile-tests
npm run test
Ensure all tests pass before submitting your pull request.
This project follows the coding standards and guidelines from the vscode-python repository. Please ensure your code adheres to these standards.
To check code formatting, run:
npm run format-check
To automatically fix formatting issues, run:
npm run format-fix
To lint your code, run:
npm run lint
Ensure there are no linting errors before submitting your pull request.
For Python code, this project uses ruff
for linting and formatting. To check your Python code for linting and formatting issues, run:
ruff check .
To automatically fix formatting issues, run:
ruff --fix .
Ensure there are no linting or formatting errors before submitting your pull request.