mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix various bugs around handling of disconnect in JsonIOStream and JsonMessageChannel. Fix handling of DAP "terminated" event in debug.Session. Add --ptvsd-logs and --pydevd-logs switches to pytest. Improve message logging to fully capture the raw message data in the logs if deserialization fails. Log all debuggee environment variables in debug.Session, and improve log readability.
13 lines
565 B
Text
13 lines
565 B
Text
Pass --ptvsd-logs and/or --pydevd-logs to pytest to create log files here for a run.
|
|
For example:
|
|
|
|
tox -e py37 -- --ptvsd-logs "tests/ptvsd/server/test_run.py::test_run[launch-file]"
|
|
|
|
A separate ptvsd-{pid}.log file will be created for every ptvsd process spawned by
|
|
the tests. However, because process IDs are reused by OS, logs may end up overwriting
|
|
earlier logs.
|
|
|
|
All pydevd logs go into the same file named pydevd.log - and subsequent tests will
|
|
overwrite earlier logs.
|
|
|
|
Thus, it is best to use this when running a single test, or a small number of tests.
|