Documentation
¶
Overview ¶
Package debugger provides type definitions for use with the Chrome Debugger protocol
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/
Index ¶
- Variables
- type BreakLocation
- type BreakLocationTypeEnum
- type BreakpointID
- type BreakpointResolvedEvent
- type CallFrame
- type CallFrameID
- type ContinueToLocationParams
- type ContinueToLocationResult
- type DisableResult
- type EnableResult
- type EvaluateOnCallFrameParams
- type EvaluateOnCallFrameResult
- type GetPossibleBreakpointsParams
- type GetPossibleBreakpointsResult
- type GetScriptSourceParams
- type GetScriptSourceResult
- type GetStackTraceParams
- type GetStackTraceResult
- type Location
- type PauseOnAsyncCallParams
- type PauseOnAsyncCallResult
- type PauseResult
- type PausedEvent
- type RemoveBreakpointParams
- type RemoveBreakpointResult
- type RestartFrameParams
- type RestartFrameResult
- type ResumeResult
- type ResumedEvent
- type ScheduleStepIntoAsyncResult
- type Scope
- type ScopeTypeEnum
- type ScriptFailedToParseEvent
- type ScriptParsedEvent
- type ScriptPosition
- type SearchInContentParams
- type SearchInContentResult
- type SearchMatch
- type SetAsyncCallStackDepthParams
- type SetAsyncCallStackDepthResult
- type SetBlackboxPatternsParams
- type SetBlackboxPatternsResult
- type SetBlackboxedRangesParams
- type SetBlackboxedRangesResult
- type SetBreakpointByURLParams
- type SetBreakpointByURLResult
- type SetBreakpointParams
- type SetBreakpointResult
- type SetBreakpointsActiveParams
- type SetBreakpointsActiveResult
- type SetPauseOnExceptionsParams
- type SetPauseOnExceptionsResult
- type SetReturnValueParams
- type SetReturnValueResult
- type SetScriptSourceParams
- type SetScriptSourceResult
- type SetSkipAllPausesParams
- type SetSkipAllPausesResult
- type SetVariableValueParams
- type SetVariableValueResult
- type StateEnum
- type StepIntoParams
- type StepIntoResult
- type StepOutResult
- type StepOverResult
- type TargetCallFramesEnum
Constants ¶
This section is empty.
Variables ¶
var BreakLocationType = breakLocationTypeEnum{ DebuggerStatement: BreakLocationTypeDebuggerStatement, Call: BreakLocationTypeCall, Return: BreakLocationTypeReturn, }
BreakLocationType provides named acces to the BreakLocationTypeEnum values.
var ScopeType = scopeTypeEnum{ Global: ScopeTypeGlobal, Local: ScopeTypeLocal, With: ScopeTypeWith, Closure: ScopeTypeClosure, Catch: ScopeTypeCatch, Block: ScopeTypeBlock, Script: ScopeTypeScript, Eval: ScopeTypeEval, Module: ScopeTypeModule, }
ScopeType provides named acces to the ScopeTypeEnum values.
var State = stateEnum{
None: stateNone,
Uncaught: stateUncaught,
All: stateAll,
}
State provides named acces to the StateEnum values.
var TargetCallFrames = targetCallFramesEnum{
Any: targetCallFramesAny,
Current: targetCallFramesCurrent,
}
TargetCallFrames provides named acces to the TargetCallFramesEnum values.
Functions ¶
This section is empty.
Types ¶
type BreakLocation ¶
type BreakLocation struct { // Script identifier as reported in the Debugger.scriptParsed. ScriptID runtime.ScriptID `json:"scriptId"` // Line number in the script (0-based). LineNumber int `json:"lineNumber"` // Optional. Column number in the script (0-based). ColumnNumber int `json:"columnNumber,omitempty"` // Optional. Allowed values: // - BreakLocationType.DebuggerStatement // - BreakLocationType.Call // - BreakLocationType.Return. Type BreakLocationTypeEnum `json:"type,omitempty"` }
BreakLocation is a break location
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-BreakLocation
type BreakLocationTypeEnum ¶
type BreakLocationTypeEnum int
BreakLocationTypeEnum is Optional. Allowed values:
- BreakLocationType.DebuggerStatement "debuggerStatement"
- BreakLocationType.Call "call"
- BreakLocationType.Return "return"
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-BreakLocation
const ( // BreakLocationTypeDebuggerStatement represents the "debuggerStatement" value. BreakLocationTypeDebuggerStatement BreakLocationTypeEnum = iota + 1 // BreakLocationTypeCall represents the "call" value. BreakLocationTypeCall // BreakLocationTypeReturn represents the "return" value. BreakLocationTypeReturn )
func (BreakLocationTypeEnum) MarshalJSON ¶
func (enum BreakLocationTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (BreakLocationTypeEnum) String ¶
func (enum BreakLocationTypeEnum) String() string
String implements Stringer
func (*BreakLocationTypeEnum) UnmarshalJSON ¶
func (enum *BreakLocationTypeEnum) UnmarshalJSON(bytes []byte) error
UnmarshalJSON implements json.Unmarshaler
type BreakpointID ¶
type BreakpointID string
BreakpointID is a breakpoint identifier.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-BreakpointId
type BreakpointResolvedEvent ¶
type BreakpointResolvedEvent struct { // Breakpoint unique identifier. BreakpointID BreakpointID `json:"breakpointId"` // Actual breakpoint location. Location *Location `json:"location"` // Error information related to this event Err error `json:"-"` }
BreakpointResolvedEvent represents Debugger.breakpointResolved event data.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#event-breakpointResolved
type CallFrame ¶
type CallFrame struct { // Call frame identifier. This identifier is only valid while the virtual // machine is paused. CallFrameID CallFrameID `json:"callFrameId"` // Name of the JavaScript function called on this call frame. FunctionName string `json:"functionName"` // Optional. Location in the source code. FunctionLocation *Location `json:"functionLocation,omitempty"` // Location in the source code. Location *Location `json:"location"` // JavaScript script name or url. URL string `json:"url"` // Scope chain for this call frame. ScopeChain []*Scope `json:"scopeChain"` // `this` object for this call frame. This *runtime.RemoteObject `json:"this"` // Optional. The value being returned, if the function is at return point. ReturnValue *runtime.RemoteObject `json:"returnValue,omitempty"` }
CallFrame is a JavaScript call frame. Array of call frames form the call stack.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-CallFrame
type CallFrameID ¶
type CallFrameID string
CallFrameID is a call frame identifier.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-CallFrameId
type ContinueToLocationParams ¶
type ContinueToLocationParams struct { // Location to continue to. Location *Location `json:"location"` // Optional. Allowed values: // - TargetCallFrames.Any // - TargetCallFrames.Current TargetCallFrames TargetCallFramesEnum `json:"targetCallFrames,omitempty"` }
ContinueToLocationParams represents Debugger.continueToLocation parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-continueToLocation
type ContinueToLocationResult ¶
type ContinueToLocationResult struct { // Error information related to executing this method Err error `json:"-"` }
ContinueToLocationResult represents the result of calls to Debugger.continueToLocation.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-continueToLocation
type DisableResult ¶
type DisableResult struct { // Error information related to executing this method Err error `json:"-"` }
DisableResult represents the result of calls to Debugger.disable.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-disable
type EnableResult ¶
type EnableResult struct { // Unique identifier of the debugger. EXPERIMENTAL ID runtime.UniqueDebuggerID `json:"debuggerId"` // Error information related to executing this method Err error `json:"-"` }
EnableResult represents the result of calls to Debugger.enable.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-enable
type EvaluateOnCallFrameParams ¶
type EvaluateOnCallFrameParams struct { // Call frame identifier to evaluate on. CallFrameID CallFrameID `json:"callFrameId"` // Expression to evaluate. Expression string `json:"expression"` // Optional. String object group name to put result into (allows rapid // releasing resulting object handles using releaseObjectGroup). ObjectGroup string `json:"objectGroup,omitempty"` // Optional. Specifies whether command line API should be available to the // evaluated expression, defaults to false. IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Optional. In silent mode exceptions thrown during evaluation are not // reported and do not pause execution. Overrides setPauseOnException state. Silent bool `json:"silent,omitempty"` // Optional. Whether the result is expected to be a JSON object that should // be sent by value. ReturnByValue bool `json:"returnByValue,omitempty"` // Optional. Whether preview should be generated for the result. // EXPERIMENTAL. GeneratePreview bool `json:"generatePreview,omitempty"` // Optional. Whether to throw an exception if side effect cannot be ruled // out during evaluation. ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` }
EvaluateOnCallFrameParams represents Debugger.evaluateOnCallFrame parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-evaluateOnCallFrame
type EvaluateOnCallFrameResult ¶
type EvaluateOnCallFrameResult struct { // Object wrapper for the evaluation result. Result *runtime.RemoteObject `json:"result"` // Optional. Exception details. ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Error information related to executing this method Err error `json:"-"` }
EvaluateOnCallFrameResult represents the result of calls to Debugger.evaluateOnCallFrame.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-evaluateOnCallFrame
type GetPossibleBreakpointsParams ¶
type GetPossibleBreakpointsParams struct { // Start of range to search possible breakpoint locations in. Start *Location `json:"start"` // Optional. End of range to search possible breakpoint locations in // (excluding). When not specified, end of scripts is used as end of range. End *Location `json:"end,omitempty"` // Optional. Only consider locations which are in the same (non-nested) // function as start. RestrictToFunction bool `json:"restrictToFunction,omitempty"` }
GetPossibleBreakpointsParams represents Debugger.getPossibleBreakpoints parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getPossibleBreakpoints
type GetPossibleBreakpointsResult ¶
type GetPossibleBreakpointsResult struct { // List of the possible breakpoint locations. Locations []*BreakLocation `json:"locations"` // Error information related to executing this method Err error `json:"-"` }
GetPossibleBreakpointsResult represents the result of calls to Debugger.getPossibleBreakpoints.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getPossibleBreakpoints
type GetScriptSourceParams ¶
type GetScriptSourceParams struct { // ID of the script to get source for. ScriptID runtime.ScriptID `json:"scriptId"` }
GetScriptSourceParams represents Debugger.getScriptSource parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getScriptSource
type GetScriptSourceResult ¶
type GetScriptSourceResult struct { // Script source. ScriptSource string `json:"scriptSource"` // Error information related to executing this method Err error `json:"-"` }
GetScriptSourceResult represents the result of calls to Debugger.getScriptSource.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getScriptSource
type GetStackTraceParams ¶
type GetStackTraceParams struct {
StackTraceID runtime.StackTraceID `json:"stackTraceId"`
}
GetStackTraceParams represents Debugger.getStackTrace parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getStackTrace
type GetStackTraceResult ¶
type GetStackTraceResult struct { StackTrace *runtime.StackTrace `json:"stackTrace"` // Error information related to executing this method Err error `json:"-"` }
GetStackTraceResult represents the result of calls to Debugger.getStackTrace.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getStackTrace
type Location ¶
type Location struct { // Script identifier as reported in the Debugger.scriptParsed. ScriptID runtime.ScriptID `json:"scriptId"` // Line number in the script (0-based). LineNumber int64 `json:"lineNumber"` // Optional. Column number in the script (0-based). ColumnNumber int64 `json:"columnNumber,omitempty"` }
Location is a location in the source code.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-Location
type PauseOnAsyncCallParams ¶
type PauseOnAsyncCallParams struct { // Debugger will pause when async call with given stack trace is started. ParentStackTraceID runtime.StackTraceID `json:"parentStackTraceId"` }
PauseOnAsyncCallParams represents Debugger.pauseOnAsyncCall parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-pauseOnAsyncCall
type PauseOnAsyncCallResult ¶
type PauseOnAsyncCallResult struct { // Error information related to executing this method Err error `json:"-"` }
PauseOnAsyncCallResult represents the result of calls to Debugger.pauseOnAsyncCall.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-pauseOnAsyncCall
type PauseResult ¶
type PauseResult struct { // Error information related to executing this method Err error `json:"-"` }
PauseResult represents the result of calls to Debugger.pause.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-pause
type PausedEvent ¶
type PausedEvent struct { // Call stack the virtual machine stopped on. CallFrames []*CallFrame `json:"callFrames"` // Pause reason. Allowed values: XHR, DOM, EventListener, exception, assert, // debugCommand, promiseRejection, OOM, other, ambiguous. Reason string `json:"reason"` // Optional. Object containing break-specific auxiliary properties. Data map[string]string `json:"data,omitempty"` // Optional. Hit breakpoints IDs. HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // Optional. Async stack trace, if any. AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Optional. Async stack trace, if any. EXPERIMENTAL AsyncStackTraceID *runtime.StackTraceID `json:"asyncStackTraceId,omitempty"` // Optional. Just scheduled async call will have this stack trace as parent // stack during async execution. This field is available only after // Debugger.stepInto call with breakOnAsynCall flag. EXPERIMENTAL. AsyncCallStackTraceID *runtime.StackTraceID `json:"asyncCallStackTraceId,omitempty"` // Error information related to this event Err error `json:"-"` }
PausedEvent represents Debugger.paused event data.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#event-paused
type RemoveBreakpointParams ¶
type RemoveBreakpointParams struct {
BreakpointID BreakpointID `json:"breakpointId"`
}
RemoveBreakpointParams represents Debugger.removeBreakpoint parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-removeBreakpoint
type RemoveBreakpointResult ¶
type RemoveBreakpointResult struct { // Error information related to executing this method Err error `json:"-"` }
RemoveBreakpointResult represents the result of calls to Debugger.removeBreakpoint.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-removeBreakpoint
type RestartFrameParams ¶
type RestartFrameParams struct { // Call frame identifier to evaluate on. CallFrameID CallFrameID `json:"callFrameId"` }
RestartFrameParams represents Debugger.restartFrame parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-restartFrame
type RestartFrameResult ¶
type RestartFrameResult struct { // New stack trace. CallFrames []*CallFrame `json:"callFrames"` // Optional. Async stack trace, if any. AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Optional. Async stack trace, if any. EXPERIMENTAL AsyncStackTraceID runtime.StackTraceID `json:"asyncStackTraceId,omitempty"` // Error information related to executing this method Err error `json:"-"` }
RestartFrameResult represents the result of calls to Debugger.restartFrame.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-restartFrame
type ResumeResult ¶
type ResumeResult struct { // Error information related to executing this method Err error `json:"-"` }
ResumeResult represents the result of calls to Debugger.resume.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-resume
type ResumedEvent ¶
type ResumedEvent struct { // Error information related to this event Err error `json:"-"` }
ResumedEvent represents Debugger.resumed event data.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#event-resumed
type ScheduleStepIntoAsyncResult ¶
type ScheduleStepIntoAsyncResult struct { // Error information related to executing this method Err error `json:"-"` }
ScheduleStepIntoAsyncResult represents the result of calls to Debugger.scheduleStepIntoAsync.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-scheduleStepIntoAsync
type Scope ¶
type Scope struct { // Scope type. Allowed values: // - ScopeType.Global // - ScopeType.Local // - ScopeType.With // - ScopeType.Closure // - ScopeType.Catch // - ScopeType.Block // - ScopeType.Script // - ScopeType.Eval // - ScopeType.Module. Type ScopeTypeEnum `json:"type"` // Object representing the scope. For global and with scopes it represents // the actual object; for the rest of the scopes, it is artificial transient // object enumerating scope variables as its properties. Object *runtime.RemoteObject `json:"object"` // Optional. The scope name. Name string `json:"name,omitempty"` // Optional. Location in the source code where scope starts. StartLocation *Location `json:"startLocation,omitempty"` // Optional. Location in the source code where scope ends. EndLocation *Location `json:"endLocation,omitempty"` }
Scope represents a scope description
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-Scope
type ScopeTypeEnum ¶
type ScopeTypeEnum int
ScopeTypeEnum represents the scope type. Allowed values:
- ScopeType.Global "global"
- ScopeType.Local "local"
- ScopeType.With "with"
- ScopeType.Closure "closure"
- ScopeType.Catch "catch"
- ScopeType.Block "block"
- ScopeType.Script "script"
- ScopeType.Eval "eval"
- ScopeType.Module "module"
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-Scope
const ( // ScopeTypeGlobal represents the "global" value. ScopeTypeGlobal ScopeTypeEnum = iota + 1 // ScopeTypeLocal represents the "local" value. ScopeTypeLocal // ScopeTypeWith represents the "with" value. ScopeTypeWith // ScopeTypeClosure represents the "closure" value. ScopeTypeClosure // ScopeTypeCatch represents the "catch" value. ScopeTypeCatch // ScopeTypeBlock represents the "block" value. ScopeTypeBlock // ScopeTypeScript represents the "script" value. ScopeTypeScript // ScopeTypeEval represents the "eval" value. ScopeTypeEval // ScopeTypeModule represents the "module" value. ScopeTypeModule )
func (ScopeTypeEnum) MarshalJSON ¶
func (enum ScopeTypeEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ScopeTypeEnum) UnmarshalJSON ¶
func (enum *ScopeTypeEnum) UnmarshalJSON(bytes []byte) error
UnmarshalJSON implements json.Unmarshaler
type ScriptFailedToParseEvent ¶
type ScriptFailedToParseEvent struct { // Identifier of the script parsed. ScriptID runtime.ScriptID `json:"scriptId"` // URL or name of the script parsed (if any). URL string `json:"url"` // Line offset of the script within the resource with given URL (for script // tags). StartLine int64 `json:"startLine"` // Column offset of the script within the resource with given URL. StartColumn int64 `json:"startColumn"` // Last line of the script. EndLine int64 `json:"endLine"` // Length of the last line of the script. EndColumn int64 `json:"endColumn"` // Specifies script creation context. ExecutionContextID runtime.ExecutionContextID `json:"executionContextId"` // Content hash of the script. Hash string `json:"hash"` // Optional. Embedder-specific auxiliary data. ExecutionContextAuxData map[string]string `json:"executionContextAuxData,omitempty"` // Optional. URL of source map associated with script (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` // Optional. True, if this script has sourceURL. HasSourceURL bool `json:"hasSourceURL,omitempty"` // Optional. True, if this script is ES6 module. IsModule bool `json:"isModule,omitempty"` // Optional. This script length. Length int64 `json:"length,omitempty"` // Optional. JavaScript top stack frame of where the script parsed event was // triggered if available. EXPERIMENTAL. StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"` // Error information related to this event Err error `json:"-"` }
ScriptFailedToParseEvent represents Debugger.scriptFailedToParse event data.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#event-scriptFailedToParse
type ScriptParsedEvent ¶
type ScriptParsedEvent struct { // Identifier of the script parsed. ScriptID runtime.ScriptID `json:"scriptId"` // URL or name of the script parsed (if any). URL string `json:"url"` // Line offset of the script within the resource with given URL (for script // tags). StartLine int `json:"startLine"` // Column offset of the script within the resource with given URL. StartColumn int `json:"startColumn"` // Last line of the script. EndLine int `json:"endLine"` // Length of the last line of the script. EndColumn int `json:"endColumn"` // Specifies script creation context. ExecutionContextID runtime.ExecutionContextID `json:"executionContextId"` // Content hash of the script. Hash string `json:"hash"` // Optional. Embedder-specific auxiliary data. ExecutionContextAuxData map[string]string `json:"executionContextAuxData,omitempty"` // Optional. True, if this script is generated as a result of the live edit // operation. EXPERIMENTAL. IsLiveEdit bool `json:"isLiveEdit,omitempty"` // Optional. URL of source map associated with script (if any). SourceMapURL string `json:"sourceMapURL,omitempty"` // Optional. True, if this script has sourceURL. HasSourceURL bool `json:"hasSourceURL,omitempty"` // Optional. True, if this script is ES6 module. IsModule bool `json:"isModule,omitempty"` // Optional. This script length. Length int `json:"length,omitempty"` // Optional. JavaScript top stack frame of where the script parsed event was // triggered if available. EXPERIMENTAL. StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"` // Error information related to this event Err error `json:"-"` }
ScriptParsedEvent represents Debugger.scriptParsed event data.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#event-scriptParsed
type ScriptPosition ¶
type ScriptPosition struct { // Line number LineNumber int64 `json:"lineNumber"` // Column number ColumnNumber int64 `json:"columnNumber"` }
ScriptPosition is a location in the source code. EXPERIMENTAL
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-ScriptPosition
type SearchInContentParams ¶
type SearchInContentParams struct { // ID of the script to search in. ScriptID runtime.ScriptID `json:"scriptId"` // String to search for. Query string `json:"query"` // Optional. If true, search is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` // Optional. If true, treats string parameter as regex. IsRegex bool `json:"isRegex,omitempty"` }
SearchInContentParams represents Debugger.searchInContent parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-searchInContent
type SearchInContentResult ¶
type SearchInContentResult struct { // List of search matches. Result []*SearchMatch `json:"result"` // Error information related to executing this method Err error `json:"-"` }
SearchInContentResult represents the result of calls to Debugger.searchInContent.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-searchInContent
type SearchMatch ¶
type SearchMatch struct { // Line number in resource content. LineNumber int64 `json:"lineNumber"` // Line with match content. LineContent string `json:"lineContent"` }
SearchMatch is a search match for a resource.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-SearchMatch
type SetAsyncCallStackDepthParams ¶
type SetAsyncCallStackDepthParams struct { // Maximum depth of async call stacks. Setting to 0 will effectively disable // collecting async call stacks (default). MaxDepth int `json:"maxDepth"` }
SetAsyncCallStackDepthParams represents Debugger.setAsyncCallStackDepth parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setAsyncCallStackDepth
type SetAsyncCallStackDepthResult ¶
type SetAsyncCallStackDepthResult struct { // Error information related to executing this method Err error `json:"-"` }
SetAsyncCallStackDepthResult represents the result of calls to Debugger.setAsyncCallStackDepth.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setAsyncCallStackDepth
type SetBlackboxPatternsParams ¶
type SetBlackboxPatternsParams struct { // Array of regexps that will be used to check script url for blackbox state. Patterns []string `json:"patterns"` }
SetBlackboxPatternsParams represents Debugger.setBlackboxPatterns parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBlackboxPatterns
type SetBlackboxPatternsResult ¶
type SetBlackboxPatternsResult struct { // Error information related to executing this method Err error `json:"-"` }
SetBlackboxPatternsResult represents the result of calls to Debugger.setBlackboxPatterns.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBlackboxPatterns
type SetBlackboxedRangesParams ¶
type SetBlackboxedRangesParams struct { // ID of the script. ScriptID runtime.ScriptID `json:"scriptId"` // Script positions. Positions []*ScriptPosition `json:"positions"` }
SetBlackboxedRangesParams represents Debugger.setBlackboxedRanges parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBlackboxedRanges
type SetBlackboxedRangesResult ¶
type SetBlackboxedRangesResult struct { // Error information related to executing this method Err error `json:"-"` }
SetBlackboxedRangesResult represents the result of calls to Debugger.setBlackboxedRanges.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBlackboxedRanges
type SetBreakpointByURLParams ¶
type SetBreakpointByURLParams struct { // Line number to set breakpoint at. LineNumber int64 `json:"lineNumber"` // Optional. URL of the resources to set breakpoint on. URL string `json:"url,omitempty"` // Optional. Regex pattern for the URLs of the resources to set breakpoints // on. Either url or urlRegex must be specified. URLRegex string `json:"urlRegex,omitempty"` // Optional. Script hash of the resources to set breakpoint on. ScriptHash string `json:"scriptHash,omitempty"` // Optional. Offset in the line to set breakpoint at. ColumnNumber int64 `json:"columnNumber,omitempty"` // Optional. Expression to use as a breakpoint condition. When specified, // debugger will only stop on the breakpoint if this expression evaluates to true. Condition string `json:"condition,omitempty"` }
SetBreakpointByURLParams represents Debugger.setBreakpointByUrl parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointByUrl
type SetBreakpointByURLResult ¶
type SetBreakpointByURLResult struct { // ID of the created breakpoint for further reference. BreakpointID BreakpointID `json:"breakpointId"` // List of the locations this breakpoint resolved into upon addition. Locations []*Location `json:"locations"` // Error information related to executing this method Err error `json:"-"` }
SetBreakpointByURLResult represents the result of calls to Debugger.setBreakpointByUrl.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointByUrl
type SetBreakpointParams ¶
type SetBreakpointParams struct { // Location to set breakpoint in. Location *Location `json:"location"` // Optional. Expression to use as a breakpoint condition. When specified, // debugger will only stop on the breakpoint if this expression evaluates to // true. Condition string `json:"condition,omitempty"` }
SetBreakpointParams represents Debugger.setBreakpoint parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpoint
type SetBreakpointResult ¶
type SetBreakpointResult struct { // ID of the created breakpoint for further reference. BreakpointID BreakpointID `json:"breakpointId"` // Location this breakpoint resolved into. ActualLocation *Location `json:"actualLocation"` // Error information related to executing this method Err error `json:"-"` }
SetBreakpointResult represents the result of calls to Debugger.setBreakpoint.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpoint
type SetBreakpointsActiveParams ¶
type SetBreakpointsActiveParams struct { // New value for breakpoints active state. Active bool `json:"active"` }
SetBreakpointsActiveParams represents Debugger.setBreakpointsActive parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointsActive
type SetBreakpointsActiveResult ¶
type SetBreakpointsActiveResult struct { // Error information related to executing this method Err error `json:"-"` }
SetBreakpointsActiveResult represents the result of calls to Debugger.setBreakpointsActive.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointsActive
type SetPauseOnExceptionsParams ¶
type SetPauseOnExceptionsParams struct { // Pause on exceptions mode. Allowed values: // - State.None // - State.Uncaught // - State.All State StateEnum `json:"state"` }
SetPauseOnExceptionsParams represents Debugger.setPauseOnExceptions parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setPauseOnExceptions
type SetPauseOnExceptionsResult ¶
type SetPauseOnExceptionsResult struct { // Error information related to executing this method Err error `json:"-"` }
SetPauseOnExceptionsResult represents the result of calls to Debugger.setPauseOnExceptions.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setPauseOnExceptions
type SetReturnValueParams ¶
type SetReturnValueParams struct { // New return value. NewValue *runtime.CallArgument `json:"newValue"` }
SetReturnValueParams represents Debugger.setReturnValue parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setReturnValue
type SetReturnValueResult ¶
type SetReturnValueResult struct { // Error information related to executing this method Err error `json:"-"` }
SetReturnValueResult represents the result of calls to Debugger.setReturnValue.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setReturnValue
type SetScriptSourceParams ¶
type SetScriptSourceParams struct { // ID of the script to edit. ScriptID runtime.ScriptID `json:"scriptId"` // New content of the script. ScriptSource string `json:"scriptSource"` // Optional. If true the change will not actually be applied. Dry run may be // used to get result description without actually modifying the code. DryRun bool `json:"dryRun,omitempty"` }
SetScriptSourceParams represents Debugger.setScriptSource parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setScriptSource
type SetScriptSourceResult ¶
type SetScriptSourceResult struct { // Optional. New stack trace in case editing has happened while VM was // stopped. CallFrames []*CallFrame `json:"callFrames,omitempty"` // Optional. Whether current call stack was modified after applying the // changes. StackChanged bool `json:"stackChanged,omitempty"` // Optional. Async stack trace, if any. AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Optional. Async stack trace, if any. EXPERIMENTAL. AsyncStackTraceID runtime.StackTraceID `json:"asyncStackTraceId,omitempty"` // Optional. Exception details if any. ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Error information related to executing this method Err error `json:"-"` }
SetScriptSourceResult represents the result of calls to Debugger.setScriptSource.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setScriptSource
type SetSkipAllPausesParams ¶
type SetSkipAllPausesParams struct { // New value for skip pauses state. Skip bool `json:"skip"` }
SetSkipAllPausesParams represents Debugger.setSkipAllPauses parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setSkipAllPauses
type SetSkipAllPausesResult ¶
type SetSkipAllPausesResult struct { // Error information related to executing this method Err error `json:"-"` }
SetSkipAllPausesResult represents the result of calls to Debugger.setSkipAllPauses.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setSkipAllPauses
type SetVariableValueParams ¶
type SetVariableValueParams struct { // 0-based number of scope as was listed in scope chain. Only 'local', // 'closure' and 'catch' scope types are allowed. Other scopes could be // manipulated manually. ScopeNumber int64 `json:"scopeNumber"` // Variable name. VariableName string `json:"variableName"` // New variable value. NewValue *runtime.CallArgument `json:"newValue"` // ID of callframe that holds variable. CallFrameID CallFrameID `json:"callFrameId"` }
SetVariableValueParams represents Debugger.setVariableValue parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setVariableValue
type SetVariableValueResult ¶
type SetVariableValueResult struct { // Error information related to executing this method Err error `json:"-"` }
SetVariableValueResult represents the result of calls to Debugger.setVariableValue.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setVariableValue
type StateEnum ¶
type StateEnum int
StateEnum represents the pause on exceptions mode. Allowed values:
- State.None "none"
- State.Uncaught "uncaught"
- State.All "all"
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setPauseOnExceptions
func (StateEnum) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*StateEnum) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type StepIntoParams ¶
type StepIntoParams struct { // Optional. Debugger will issue additional Debugger.paused notification if // any async task is scheduled before next pause. EXPERIMENTAL. BreakOnAsyncCall bool `json:"breakOnAsyncCall,omitempty"` }
StepIntoParams represents Debugger.stepInto parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepInto
type StepIntoResult ¶
type StepIntoResult struct { // Error information related to executing this method Err error `json:"-"` }
StepIntoResult represents the result of calls to Debugger.stepInto.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepInto
type StepOutResult ¶
type StepOutResult struct { // Error information related to executing this method Err error `json:"-"` }
StepOutResult represents the result of calls to Debugger.stepOut.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepOut
type StepOverResult ¶
type StepOverResult struct { // Error information related to executing this method Err error `json:"-"` }
StepOverResult represents the result of calls to Debugger.stepOver.
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepOver
type TargetCallFramesEnum ¶
type TargetCallFramesEnum int
TargetCallFramesEnum is optional. Allowed values:
- TargetCallFrames.Any "any"
- TargetCallFrames.Current "current"
https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-continueToLocation
func (TargetCallFramesEnum) MarshalJSON ¶
func (enum TargetCallFramesEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (TargetCallFramesEnum) String ¶
func (enum TargetCallFramesEnum) String() string
String implements Stringer
func (*TargetCallFramesEnum) UnmarshalJSON ¶
func (enum *TargetCallFramesEnum) UnmarshalJSON(bytes []byte) error
UnmarshalJSON implements json.Unmarshaler