More changes for debugging debugpy

This commit is contained in:
Rich Chiodo 2024-10-11 16:40:03 -07:00 committed by GitHub
parent 39879bdeea
commit fbcc842908
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,9 @@ The tests are run concurrently, and the default number of workers is 8. You can
### Running tests without tox
While tox is the recommended way to run the test suite, pytest can also be invoked directly from the root of the repository. This requires packages in tests/requirements.txt to be installed first.
While tox is the recommended way to run the test suite, pytest can also be invoked directly from the root of the repository. This requires:
- pip installing the requirements in test/requirements.txt first
- setting PYTHONPATH=./src folder
#### Keeping logs on test success
@ -263,4 +265,4 @@ Follow these steps to set up native debugging in Visual Studio:
11. Once the DLL is loaded, Visual Studio will automatically load the associated PDB files, and your breakpoints should become active.
12. When the breakpoint is hit, you can debug the native code as you would in any debug session.
If you need to step into the Python code during the debug session, you can download the Python source code from [python.org](https://www.python.org/downloads/source/). Unzip it to a folder, and when Visual Studio prompts for the source location, point it to the folder where you extracted the Python source. Ensure that the Python version matches the interpreter used to run your script (e.g., `python ./main.py`).
If you need to step into the Python code during the debug session, you can download the Python source code from [python.org](https://www.python.org/downloads/source/). Unzip it to a folder, and when Visual Studio prompts for the source location, point it to the folder where you extracted the Python source. Ensure that the Python version matches the interpreter used to run your script (e.g., `python ./main.py`).