* Changes from pushing to pydevd
* Update some time outs to get flakey tests to pass
* Fix string failure
* String case backwards. Fixup test in pydevd
* Using callstack for exception check not sufficient
* Too restrictive on pydevd matching
* Try somethign better than just checking 'pydev'
* Retry a flakey test
* Disable flakey tests
* Another flakey test
* Increase timeout for attach
* Try upping timeout
* Up watchdog timeout
* Up some more timeouts
* Try delaying shutdown of test apps
* Don't output extra things that tests don't expect
* Fix output differences in 3.9? Not sure what that's about
* Fixup line differences in 3.9 with extra sleep
* Fix linter errors
* Fix breakpoint bugs
This is pulling in @fabioz's latest changes for sys.monitoring and then fixing up any issues found with the debugpy tests.
A lot of the changes were made by Fabio since the latest pull from pydevd, so I also created this PR to compare what changes I made to Fabio's baseline:
rchiodo/PyDev.Debugger#1
Meaning you really only need to look at that other PR to see what changes I made. The rest of the changes here are from Fabio or ruff doing reformating.
After this goes through, we should have sys.monitoring support in debugpy. We can decide later if we want to implement our own support as @int19h started.
Fixes#1496
Use YAML templates for setting up Python and running tests.
Use matrix instead of separate jobs for Windows 32-bit and 64-bit runs.
Change --debugpy-logs to --debugpy-log-dir with explicit destination, and use that to capture and publish test logs in CI.
Delete logs for passed tests by default, and add --debugpy-log-passed to opt out.
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.
Fix#1721 "runInTerminal" is broken on non-Windows platforms.
Fix#1722: Output is not captured in "noDebug" with "runInTerminal"
Groundwork for #1713: adapter: multiple concurrent sessions
Move "launch" request parsing and debuggee process spawning, PID reporting and tracking, stdio "output" capture, and exit code reporting into launcher. Launcher now communicates to the adapter via a full-fledged message channel.
Refactor adapter. Add an abstraction for a debug session, and treat IDE, launcher, and debug server as separate components managed by that session.
Improve adapter logging to capture information about current debug session, and current message handler if any.
Fix reporting exceptions from message handlers.
Various test fixes.
* Initial fix for launch
* Minor fixes
* Succesful launch tests
* More launch test fixes
* Some bit of cleanup
* Fix linter
* More cleanup
* Attach using import
* Fix circular importing
* Support attach via command line
* Backchannel and Other test fixes
* Linter fix
* Python path fix in test
* Fix lint after rebase
* Support exitCode in tests
* More fixes after rebase
* Fix expected exit code
* Remove changes to MessageDict __call__
* Remove hold subprocess event
Add long_tmpdir fixture, that always supplies a long rather than short path name on Windows.
Use long_tmpdir in the implementation of @pyfile, and in all tests that use tmpdir to generate code.
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.