
* Support evaluate request * Fix failing tests * Call support * Remove debugger.CurrentThread() that got accidentally reintroduced during merge * Address review comments * Function to stringify stop reason * Add resetHandlesForStop * Handle stop inside call * More tests * Address review comments * Check all threads to determine if call completed * Fix test * Fix test * Fix test * Address review comments Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
25 lines
835 B
Go
25 lines
835 B
Go
package dap
|
|
|
|
// Unique identifiers for messages returned for errors from requests.
|
|
// These values are not mandated by DAP (other than the uniqueness
|
|
// requirement), so each implementation is free to choose their own.
|
|
const (
|
|
UnsupportedCommand int = 9999
|
|
InternalError int = 8888
|
|
NotYetImplemented int = 7777
|
|
|
|
// Where applicable and for consistency only,
|
|
// values below are inspired the original vscode-go debug adaptor.
|
|
FailedToLaunch = 3000
|
|
FailedtoAttach = 3001
|
|
UnableToSetBreakpoints = 2002
|
|
UnableToDisplayThreads = 2003
|
|
UnableToProduceStackTrace = 2004
|
|
UnableToListLocals = 2005
|
|
UnableToListArgs = 2006
|
|
UnableToListGlobals = 2007
|
|
UnableToLookupVariable = 2008
|
|
UnableToEvaluateExpression = 2009
|
|
// Add more codes as we support more requests
|
|
)
|