
* Initial support for scopes and variables requests * Add detailed variables test * Address review comments * Fix typo and redudant escaped characters * Bug fix for uninitialized interfaces; no refs needed for 0-size vars * Minor cosmetic tweaks * Add incomplete loading test * Make DeepSource happy * Remove unnecessary t.Helper() calls * Update broken test after merge * Add missing return * Rework test harness to abort testvariables2 before stack overflow * Remove accidentally duplicated disconnet * Test for invalid interface type with regex * Drop testvariables3, clean up and test unreadable case * Respond to review comments * Make expectVar test helper less fragile * Make DeepSource happy * Use proc.LoadConfig directly * Adjust test to avoid var count discrepency between Go 1.15 and earlier * Make compound keys in a map unique for correct display * Remove locals num check that will break if more vars are added Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
23 lines
757 B
Go
23 lines
757 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
|
|
UnableToDisplayThreads = 2003
|
|
UnableToProduceStackTrace = 2004
|
|
UnableToListLocals = 2005
|
|
UnableToListArgs = 2006
|
|
UnableToListGlobals = 2007
|
|
UnableToLookupVariable = 2008
|
|
// Add more codes as we support more requests
|
|
)
|