debugpy/tests/_logs
Pavel Minaev 8f358d6e0f Refactor tests.debug to accommodate ptvsd.server spawning the adapter, and remove the need for "custom_client" and "custom_server" start methods.
Fix launcher not propagating debuggee exit code.

Fix attach-by-PID without explicit --log-dir overriding PTVSD_LOG_DIR (and disabling logging).

Improve test logging, with a separate directory for every test.

Various test fixes.
2019-09-26 13:20:26 -07:00
..
clean.cmd Refactor tests.debug to accommodate ptvsd.server spawning the adapter, and remove the need for "custom_client" and "custom_server" start methods. 2019-09-26 13:20:26 -07:00
README Fix #1551: Backchannel failures in tests 2019-07-02 17:05:51 -07:00

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.