debugpy/tests/test_data
Pavel Minaev 981b1d1559 Fix #1648: Messaging does not allow reverse requests
Separate message parsing and message handling into separate threads.

Remove nested message handling in request handlers via `yield`, since it is incompatible with the new split model, and replace it with NO_RESPONSE and Request.respond() to defer responses until later.

Change Message.cant_handle() and Message.isnt_valid() to respond to the request and return the exception, instead of raising it, to accommodate NO_RESPONSE scenarios where a failure needs to be reported later.

Fix #1678: Do not rely on "processId" being returned by "runInTerminal" request

Extract debuggee PID from the "process" event sent by the debug server.

Fix #1679: "exited" event sometimes reports "exitCode": null

Report it as -1 if it cannot be retrieved from the debuggee process.

Fix #1680: Fatal errors in message loop do not fail fast

os._exit() immediately if a fatal error occurs in message parsing or message handling background threads.
2019-08-11 19:46:54 -07:00
..
attach Fix race condition in test_attach. 2019-07-18 10:13:02 -07:00
bp Test refactoring migrated to new api (#1544) 2019-06-28 16:27:38 -07:00
call_me_back Fix remaining tests to reflect the debug adapter refactoring changes. 2019-07-11 16:19:06 -07:00
django1 Fix remaining tests to reflect the debug adapter refactoring changes. 2019-07-11 16:19:06 -07:00
flask1 Fix remaining tests to reflect the debug adapter refactoring changes. 2019-07-11 16:19:06 -07:00
testpkgs/pkg1 Fix #1648: Messaging does not allow reverse requests 2019-08-11 19:46:54 -07:00
NOT_A_PACKAGE Tests refactoring. (#1543) 2019-06-28 10:13:00 -07:00