2020-02-15 19:52:53 +00:00
|
|
|
package dap
|
|
|
|
|
|
|
|
// Unique identifiers for messages returned for errors from requests.
|
2020-07-09 21:39:04 +00:00
|
|
|
// These values are not mandated by DAP (other than the uniqueness
|
|
|
|
// requirement), so each implementation is free to choose their own.
|
2020-02-15 19:52:53 +00:00
|
|
|
const (
|
|
|
|
UnsupportedCommand int = 9999
|
2020-02-26 05:00:54 +00:00
|
|
|
InternalError int = 8888
|
2020-05-01 19:24:44 +00:00
|
|
|
NotYetImplemented int = 7777
|
2020-02-15 19:52:53 +00:00
|
|
|
|
2020-07-09 21:39:04 +00:00
|
|
|
// Where applicable and for consistency only,
|
|
|
|
// values below are inspired the original vscode-go debug adaptor.
|
2020-11-12 23:24:31 +00:00
|
|
|
FailedToLaunch = 3000
|
2020-12-28 17:14:15 +00:00
|
|
|
FailedToAttach = 3001
|
2020-11-12 23:24:31 +00:00
|
|
|
UnableToSetBreakpoints = 2002
|
|
|
|
UnableToDisplayThreads = 2003
|
|
|
|
UnableToProduceStackTrace = 2004
|
|
|
|
UnableToListLocals = 2005
|
|
|
|
UnableToListArgs = 2006
|
|
|
|
UnableToListGlobals = 2007
|
|
|
|
UnableToLookupVariable = 2008
|
|
|
|
UnableToEvaluateExpression = 2009
|
2020-02-15 19:52:53 +00:00
|
|
|
// Add more codes as we support more requests
|
2021-04-12 21:50:15 +00:00
|
|
|
DisconnectError = 5000
|
2020-02-15 19:52:53 +00:00
|
|
|
)
|