debugpy/tests/_logs/README
Pavel Minaev 82b62b77b5 Fix #1551: Backchannel failures in tests
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.
2019-07-02 17:05:51 -07:00

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.