aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/lib.rs
Commit message (Collapse)AuthorAge
* feat(dap): send Disconnect if Terminated event received (#5532)Filip Dutescu2023-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | Send a `Disconnect` DAP request if the `Terminated` event is received. According to the specification, if the debugging session was started by as `launch`, the debuggee should be terminated alongside the session. If instead the session was started as `attach`, it should not be disposed of. This default behaviour can be overriden if the `supportTerminateDebuggee` capability is supported by the adapter, through the `Disconnect` request `terminateDebuggee` argument, as described in [the specification][discon-spec]. This also implies saving the starting command for a debug sessions, in order to decide which behaviour should be used, as well as validating the capabilities of the adapter, in order to decide what the disconnect should do. An additional change made is handling of the `Exited` event, showing a message if the exit code is different than `0`, for the user to be aware off the termination failure. [discon-spec]: https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disconnect Closes: #4674 Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
* DAP: Add request ID to request timeout message (#6018)xiaoma200820082023-02-16
| | | | This improves error logging for dap requests. Without the ID it's hard to know which request is the one that timed out.
* Invert core -> dap dependencyBlaž Hrastnik2021-10-17
|
* editor: add Node.js debuggerDmitry Sharshakov2021-09-26
|
* Add more event types, simplify event decodingBlaž Hrastnik2021-08-22
|
* Refactor types, add a Request traitBlaž Hrastnik2021-08-20
|
* dap: Split types off into types.rsBlaž Hrastnik2021-08-20
|
* dap-basic: parse stop eventDmitry Sharshakov2021-08-20
|
* dap-basic: handle output eventsDmitry Sharshakov2021-08-20
|
* Initial debug adapter protocol implementationDmitry Sharshakov2021-08-20