delve/service/dap/error_ids.go
polinasok 7e13791b4a
service/dap: Support stackTrace request (#2093)
* service/dap: Support stackTrace request

* Minor tweaks

* Address review comments

* Fix grammar

* Address review comments

* Address review comments

* Update comments

Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
2020-07-01 11:01:17 -07:00

20 lines
681 B
Go

package dap
// Unique identifiers for messages returned for errors from requests.
const (
UnsupportedCommand int = 9999
InternalError int = 8888
NotYetImplemented int = 7777
// The values below come from the vscode-go debug adaptor.
// Although the spec says they should be unique, the adaptor
// reuses 3000 for launch, attach and program exit failures.
// TODO(polina): confirm if the extension expects specific ids
// for specific cases, and we must match the existing adaptor
// or if these codes can evolve.
FailedToContinue = 3000
UnableToDisplayThreads = 2003
UnableToProduceStackTrace = 2004
// Add more codes as we support more requests
)