debugger

package
v0.0.0-...-50b289e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreakLocation

type BreakLocation struct {
	ScriptId     *runtime.ScriptId  `json:"scriptId"`
	LineNumber   int                `json:"lineNumber"`
	ColumnNumber int                `json:"columnNumber"`
	Type         *BreakLocationType `json:"type"`
}

type BreakLocationType

type BreakLocationType string
const (
	BreakLocationTypeDebuggerStatement BreakLocationType = "debuggerStatement"
	BreakLocationTypeCall              BreakLocationType = "call"
	BreakLocationTypeReturn            BreakLocationType = "return"
)

type BreakpointId

type BreakpointId string

type CallFrame

type CallFrame struct {
	CallFrameId      *CallFrameId          `json:"callFrameId"`
	FunctionName     string                `json:"functionName"`
	FunctionLocation *Location             `json:"functionLocation"`
	Location         *Location             `json:"location"`
	Url              string                `json:"url"`
	ScopeChain       []*Scope              `json:"scopeChain"`
	This             *runtime.RemoteObject `json:"this"`
	ReturnValue      *runtime.RemoteObject `json:"returnValue"`
}

type CallFrameId

type CallFrameId string

type CommandContinueToLocation

type CommandContinueToLocation struct {
	Location         Location                      `json:"location"`
	TargetCallFrames *runtime.TargetCallFramesType `json:"targetCallFrames"`
}

type CommandDisable

type CommandDisable struct{}

type CommandEnable

type CommandEnable struct {
	DebuggerId *runtime.UniqueDebuggerId `json:"debuggerId"`
}

type CommandEvaluateOnCallFrame

type CommandEvaluateOnCallFrame struct {
	CallFrameId           *CallFrameId `json:"callFrameId"`
	Expression            string       `json:"expression"`
	ObjectGroup           string       `json:"objectGroup"`
	IncludeCommandLineAPI bool         `json:"includeCommandLineAPI"`
	Silent                bool         `json:"silent"`
	ReturnByValue         bool         `json:"returnByValue"`
	GeneratePreview       bool         `json:"generatePreview"`
	ThrowOnSideEffect     bool         `json:"throwOnSideEffect"`
}

type CommandGetPossibleBreakpoints

type CommandGetPossibleBreakpoints struct {
	Start              *Location `json:"start"`
	End                *Location `json:"end"`
	RestrictToFunction bool      `json:"restrictToFunction"`
}

type CommandGetScriptSource

type CommandGetScriptSource struct {
	ScriptId *runtime.ScriptId `json:"scriptId"`
}

type CommandGetStackTrace

type CommandGetStackTrace struct {
	StackTraceId *runtime.StackTraceId `json:"stackTraceId"`
}

type CommandPause

type CommandPause struct {
}

type CommandPauseOnAsyncCall

type CommandPauseOnAsyncCall struct {
	ParentStackTraceId *runtime.StackTraceId `json:"parentStackTraceId"`
}

type CommandRemoveBreakpoint

type CommandRemoveBreakpoint struct {
	// contains filtered or unexported fields
}

type CommandRestartFrame

type CommandRestartFrame struct {
	// contains filtered or unexported fields
}

type CommandResume

type CommandResume struct {
}

type CommandSearchInContent

type CommandSearchInContent struct {
	ScriptId      *runtime.ScriptId `json:"scriptId"`
	Query         string            `json:"query"`
	CaseSensitive bool              `json:"caseSensitive"`
	IsRegex       bool              `json:"isRegex"`
}

type CommandSetAsyncCallStackDepth

type CommandSetAsyncCallStackDepth struct {
	MaxDepth int `json:"maxDepth"`
}

type CommandSetBlackboxPatterns

type CommandSetBlackboxPatterns struct {
	Patterns []string `json:"patterns"`
}

type CommandSetBlackboxedRanges

type CommandSetBlackboxedRanges struct {
	ScriptId  *runtime.ScriptId `json:"scriptId"`
	Positions []*ScriptPosition `json:"positions"`
}

type CommandSetBreakpoint

type CommandSetBreakpoint struct {
	Location  *Location `json:"location"`
	Condition string    `json:"condition"`
}

type CommandSetBreakpointByUrl

type CommandSetBreakpointByUrl struct {
	LineNumber   int    `json:"lineNumber"`
	Url          string `json:"url"`
	UrlRegex     string `json:"urlRegex"`
	ScriptHash   string `json:"scriptHash"`
	ColumnNumber int    `json:"columnNumber"`
	Condition    string `json:"condition"`
}

type CommandSetBreakpointsActive

type CommandSetBreakpointsActive struct {
	Active bool `json:"active"`
}

type CommandSetPauseOnExceptions

type CommandSetPauseOnExceptions struct {
	State *StateType `json:"state"`
}

type CommandSetReturnValue

type CommandSetReturnValue struct {
	NewValue *runtime.CallArgument `json:"newValue"`
}

type CommandSetScriptSource

type CommandSetScriptSource struct {
	ScriptId     *runtime.ScriptId `json:"scriptId"`
	ScriptSource string            `json:"scriptSource"`
	DryRun       bool              `json:"dryRun"`
}

type CommandSetSkipAllPauses

type CommandSetSkipAllPauses struct {
	Skip bool `json:"skip"`
}

type CommandSetVariableValue

type CommandSetVariableValue struct {
	ScopeNumber  int                   `json:"scopeNumber"`
	VariableName string                `json:"variableName"`
	NewValue     *runtime.CallArgument `json:"newValue"`
	CallFrameId  *CallFrameId          `json:"callFrameId"`
}

type CommandStepInto

type CommandStepInto struct {
	BreakOnAsyncCall bool `json:"breakOnAsyncCall"`
}

type CommandStepOut

type CommandStepOut struct {
}

type CommandStepOver

type CommandStepOver struct {
}

type EventBreakpointResolved

type EventBreakpointResolved struct {
	BreakpointId *BreakpointId `json:"breakpointId"`
	Location     *Location     `json:"location"`
}

type EventPaused

type EventPaused struct {
	CallFrames            []*CallFrame          `json:"callFrames"`
	Reason                *PausedReasonType     `json:"reason"`
	Data                  interface{}           `json:"data"`
	HitBreakpoints        []string              `json:"hitBreakpoints"`
	AsyncStackTrace       *runtime.StackTrace   `json:"asyncStackTrace"`
	AsyncStackTraceId     *runtime.StackTraceId `json:"asyncStackTraceId"`
	AsyncCallStackTraceId *runtime.StackTraceId `json:"asyncCallStackTraceId"`
}

type EventResumed

type EventResumed struct {
}

type EventScriptFailedToParse

type EventScriptFailedToParse struct {
	ScriptId                *runtime.ScriptId           `json:"scriptId"`
	Url                     string                      `json:"url"`
	StartLine               int                         `json:"startLine"`
	StartColumn             int                         `json:"startColumn"`
	EndLine                 int                         `json:"endLine"`
	EndColumn               int                         `json:"endColumn"`
	ExecutionContextId      *runtime.ExecutionContextId `json:"executionContextId"`
	Hash                    string                      `json:"hash"`
	ExecutionContextAuxData interface{}                 `json:"executionContextAuxData"`
	SourceMapURL            string                      `json:"sourceMapURL"`
	HasSourceURL            bool                        `json:"hasSourceURL"`
	IsModule                bool                        `json:"isModule"`
	Length                  int                         `json:"length"`
	StackTrace              *runtime.StackTrace         `json:"stackTrace"`
}

type EventScriptParsed

type EventScriptParsed struct {
	ScriptId                *runtime.ScriptId           `json:"scriptId"`
	Url                     string                      `json:"url"`
	StartLine               int                         `json:"startLine"`
	StartColumn             int                         `json:"startColumn"`
	EndLine                 int                         `json:"endLine"`
	EndColumn               int                         `json:"endColumn"`
	ExecutionContextId      *runtime.ExecutionContextId `json:"executionContextId"`
	Hash                    string                      `json:"hash"`
	ExecutionContextAuxData interface{}                 `json:"executionContextAuxData"`
	IsLiveEdit              bool                        `json:"isLiveEdit"`
	SourceMapURL            string                      `json:"sourceMapURL"`
	HasSourceURL            bool                        `json:"hasSourceURL"`
	IsModule                bool                        `json:"isModule"`
	Length                  int                         `json:"length"`
	StackTrace              *runtime.StackTrace         `json:"stackTrace"`
}

type Location

type Location struct {
	ScriptId     *runtime.ScriptId `json:"scriptId"`
	LineNumber   int               `json:"lineNumber"`
	ColumnNumber int               `json:"columnNumber"`
}

type PausedReasonType

type PausedReasonType string
const (
	PausedReasonTypeXhr              PausedReasonType = "XHR"
	PausedReasonTypeDom              PausedReasonType = "DOM"
	PausedReasonTypeEventListener    PausedReasonType = "EventListener"
	PausedReasonTypeException        PausedReasonType = "exception"
	PausedReasonTypeAssert           PausedReasonType = "assert"
	PausedReasonTypeDebugCommand     PausedReasonType = "debugCommand"
	PausedReasonTypePromiseRejection PausedReasonType = "promiseRejection"
	PausedReasonTypeOom              PausedReasonType = "OOM"
	PausedReasonTypeOther            PausedReasonType = "other"
	PausedReasonTypeAmbiguous        PausedReasonType = "ambiguous"
)

type ResponseEvaluateOnCallFrame

type ResponseEvaluateOnCallFrame struct {
	Result           *runtime.RemoteObject     `json:"result"`
	ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails"`
}

type ResponseGetPossibleBreakpoints

type ResponseGetPossibleBreakpoints struct {
	Locations []*BreakLocation `json:"locations"`
}

type ResponseGetScriptSource

type ResponseGetScriptSource struct {
	ScriptSource string `json:"scriptSource"`
}

type ResponseGetStackTrace

type ResponseGetStackTrace struct {
	StackTrace *runtime.StackTrace `json:"stackTrace"`
}

type ResponseRestartFrame

type ResponseRestartFrame struct {
	CallFrames        []*CallFrame          `json:"callFrames"`
	AsyncStackTrace   *runtime.StackTrace   `json:"asyncStackTrace"`
	AsyncStackTraceId *runtime.StackTraceId `json:"asyncStackTraceId"`
}

type ResponseSearchInContent

type ResponseSearchInContent struct {
	Result []*SearchMatch `json:"result"`
}

type ResponseSetBreakpoint

type ResponseSetBreakpoint struct {
	BreakpointId   *BreakpointId `json:"breakpointId"`
	ActualLocation *Location     `json:"actualLocation"`
}

type ResponseSetBreakpointByUrl

type ResponseSetBreakpointByUrl struct {
	BreakpointId *BreakpointId `json:"breakpointId"`
	Locations    []*Location   `json:"locations"`
}

type ResponseSetScriptSource

type ResponseSetScriptSource struct {
	CallFrames        []*CallFrame              `json:"callFrames"`
	StateChanged      bool                      `json:"stackChanged"`
	AsyncStackTrace   *runtime.StackTrace       `json:"asyncStackTrace"`
	AsyncStackTraceId *runtime.StackTraceId     `json:"asyncStackTraceId"`
	ExceptionDetails  *runtime.ExceptionDetails `json:"exceptionDetails"`
}

type Scope

type Scope struct {
	Type          *ScopeType            `json:"type"`
	Object        *runtime.RemoteObject `json:"object"`
	Name          string                `json:"name"`
	StartLocation *Location             `json:"startLocation"`
	EndLocation   *Location             `json:"endLocation"`
}

type ScopeType

type ScopeType string
const (
	ScopeTypeGlobal  ScopeType = "global"
	ScopeTypeLocal   ScopeType = "local"
	ScopeTypeWith    ScopeType = "with"
	ScopeTypeClosure ScopeType = "closure"
	ScopeTypeCatch   ScopeType = "catch"
	ScopeTypeBlock   ScopeType = "block"
	ScopeTypeScript  ScopeType = "script"
	ScopeTypeEval    ScopeType = "eval"
	ScopeTypeModule  ScopeType = "module"
)

type ScriptPosition

type ScriptPosition struct {
	LineNumber   int `json:"lineNumber"`
	ColumnNumber int `json:"columnNumber"`
}

type SearchMatch

type SearchMatch struct {
	LineNumber  int    `json:"lineNumber"`
	LineContent string `json:"lineContent"`
}

type StateType

type StateType string
const (
	StateTypeNone     StateType = "none"
	StateTypeUncaught StateType = "uncaught"
	StateTypeAll      StateType = "all"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL