-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
package goja | ||
|
||
import "errors" | ||
|
||
type StepState int | ||
|
||
const ( | ||
DebuggerInit StepState = 0 | ||
Check failure on line 8 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
DebuggerStep = 1 | ||
DebuggerStepIn = 2 | ||
DebuggerStepOut = 3 | ||
DebuggerStepContinue = 4 | ||
DebuggerStepStop = 5 | ||
) | ||
|
||
type MessageKeyType = string | ||
|
||
const ( | ||
TypeKey MessageKeyType = "type" | ||
Check failure on line 19 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
EventKey = "event" | ||
RequestKey = "request" | ||
ReasonKey = "reason" | ||
ThreadKey = "thread" | ||
PathKey = "path" | ||
DirtyKey = "dirty" | ||
BreakpointsKey = "breakpoints" | ||
CommandKey = "command" | ||
ArgsKey = "args" | ||
ExpressionKey = "expression" | ||
ResultKey = "result" | ||
LineKey = "line" | ||
ColumnKey = "column" | ||
VariablesReferenceKey = "variablesReference" | ||
ResponseKey = "response" | ||
BodyKey = "body" | ||
RequestSeqKey = "request_seq" | ||
FrameIDKey = "frameId" | ||
) | ||
|
||
const ( | ||
EventType = "event" | ||
ResponseType = "response" | ||
) | ||
|
||
type CommandType = string | ||
|
||
const ( | ||
ContinueCommand CommandType = "continue" | ||
Check failure on line 48 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
PauseCommand = "pause" | ||
NextCommand = "next" | ||
StepIntoCommand = "stepInto" | ||
StepInCommand = "stepIn" | ||
StepOutCommand = "stepOut" | ||
EvaluateCommand = "evaluate" | ||
StackTraceCommand = "stackTrace" | ||
ScopesCommand = "scopes" | ||
VariablesCommand = "variables" | ||
StopCommand = "stop" | ||
) | ||
|
||
type MessageType = string | ||
|
||
const ( | ||
RequestMessage MessageType = "request" | ||
Check failure on line 64 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
ContinueMessage = "continue" | ||
BreakpointsMessage = "breakpoints" | ||
StopOnExceptionType = "stopOnException" | ||
) | ||
|
||
type EventReasonType = string | ||
|
||
const ( | ||
StepInReason EventReasonType = "stepIn" | ||
Check failure on line 73 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
StepOutReason = "stepOut" | ||
BreakpointReason = "breakpoint" | ||
StepReason = "step" | ||
EntryReason = "entry" | ||
PauseReason = "pause" | ||
) | ||
|
||
const ( | ||
TerminatedEvent = "terminated" | ||
StoppedEvent = "StoppedEvent" | ||
) | ||
|
||
const ( | ||
stackID = "id" | ||
Check failure on line 87 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
stackName = "name" | ||
Check failure on line 88 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
stackFilename = "filename" | ||
Check failure on line 89 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
stackLine = "line" | ||
Check failure on line 90 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
) | ||
|
||
const ( | ||
scopeName = "name" | ||
Check failure on line 94 in debugger_const.go GitHub Actions / test (1.x, ubuntu-latest)
|
||
scopeReference = "reference" | ||
scopeExpensive = "expensive" | ||
|
||
localScope = "Local" | ||
globalScope = "Global" | ||
closureScope = "Closure" | ||
) | ||
|
||
const ( | ||
filterKey = "filter" | ||
indexedKey = "indexed" | ||
startKey = "start" | ||
countKey = "count" | ||
) | ||
|
||
const ( | ||
variableNameKey = "name" | ||
variableValueKey = "value" | ||
indexedVariablesKey = "indexedVariables" | ||
) | ||
|
||
const ( | ||
undefinedType = "undefined" | ||
stringType = "string" | ||
integerType = "integer" | ||
booleanType = "boolean" | ||
floatType = "float" | ||
objectType = "object" | ||
) | ||
|
||
var errDebugCanceled = errors.New("debugger is canceled by client") |