
* service/dap: implement exception info * remove adding additional thread * Fix tests * add exceptionInfo tests * update comments * map paths to client paths * remove launch.json * remove change to ConvertEvalScope * correct name of supportsExceptionInfoRequest * Add TODO for deleting output event * Print Stack header to buffer * Try to move resolving exception info to onExceptionInfoRequest * save the error and return if it is the current thread * rename thread to g * findgoroutine returns goroutine * clean up findgoroutine * log errors * remove output event * fix grammar
29 lines
957 B
Go
29 lines
957 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
|
|
FailedToInitialize = 3002
|
|
UnableToSetBreakpoints = 2002
|
|
UnableToDisplayThreads = 2003
|
|
UnableToProduceStackTrace = 2004
|
|
UnableToListLocals = 2005
|
|
UnableToListArgs = 2006
|
|
UnableToListGlobals = 2007
|
|
UnableToLookupVariable = 2008
|
|
UnableToEvaluateExpression = 2009
|
|
UnableToGetExceptionInfo = 2010
|
|
// Add more codes as we support more requests
|
|
DebuggeeIsRunning = 4000
|
|
DisconnectError = 5000
|
|
)
|