delve/service/dap
Suzy Mueller 5632cf92be
service/dap: add "panic" and "fatal error" as stopped reasons (#2186)
* service/dap: add "panic" and "fatal error" as stopped reasons

The unrecovered panic and fatal throw breakpoints are not set by the
user. We now check for these special breakpoints and send appropriate
stopped reasons to the client.

* Add getter for StopReason

* Set threadID and stop reason correctly

If there is no selected goroutine, no goroutine ID should be set in
the stopped event.

The stopped reason can be better determined using the process
StopReason.

* Update panic breakpoint on next test to work with Go 1.13 runtime

When running panic.go with Go1.13, the next line that is stepped to
after panic('boom') is the defer function in the runtime package. The
unrecovered panic breakpoint is not hit until after several steps.

The test now steps until the breakpoint is hit, or the program terminates
without hitting the unrecovered panic breakpoint, in which case it fails.

* Skip breakpoint on next test in < Go 1.14
2020-10-07 08:24:40 -07:00
..
daptest service/dap: support clearing breakpoints and setting breakpoint conditions (#2188) 2020-10-02 09:18:33 -07:00
error_ids.go service/dap: support clearing breakpoints and setting breakpoint conditions (#2188) 2020-10-02 09:18:33 -07:00
handles.go service: move some type conversions from service/debugger to rpc pkgs 2020-09-10 16:19:04 +02:00
server_test.go service/dap: add "panic" and "fatal error" as stopped reasons (#2186) 2020-10-07 08:24:40 -07:00
server.go service/dap: add "panic" and "fatal error" as stopped reasons (#2186) 2020-10-07 08:24:40 -07:00
utils.go service/dap: Support stackTrace request (#2093) 2020-07-01 11:01:17 -07:00