gitlab.com/Raven-IO/raven-delve@v1.22.4/service/dap/error_ids.go (about)

     1  package dap
     2  
     3  // Unique identifiers for messages returned for errors from requests.
     4  // These values are not mandated by DAP (other than the uniqueness
     5  // requirement), so each implementation is free to choose their own.
     6  const (
     7  	UnsupportedCommand int = 9999
     8  	InternalError      int = 8888
     9  	NotYetImplemented  int = 7777
    10  
    11  	// Where applicable and for consistency only,
    12  	// values below are inspired the original vscode-go debug adaptor.
    13  
    14  	FailedToLaunch             = 3000
    15  	FailedToAttach             = 3001
    16  	FailedToInitialize         = 3002
    17  	UnableToSetBreakpoints     = 2002
    18  	UnableToDisplayThreads     = 2003
    19  	UnableToProduceStackTrace  = 2004
    20  	UnableToListLocals         = 2005
    21  	UnableToListArgs           = 2006
    22  	UnableToListGlobals        = 2007
    23  	UnableToLookupVariable     = 2008
    24  	UnableToEvaluateExpression = 2009
    25  	UnableToHalt               = 2010
    26  	UnableToGetExceptionInfo   = 2011
    27  	UnableToSetVariable        = 2012
    28  	UnableToDisassemble        = 2013
    29  	UnableToListRegisters      = 2014
    30  	UnableToRunDlvCommand      = 2015
    31  
    32  	// Add more codes as we support more requests
    33  
    34  	NoDebugIsRunning  = 3000
    35  	DebuggeeIsRunning = 4000
    36  	DisconnectError   = 5000
    37  )