debugger

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreakpointId

type BreakpointId string

type BreakpointResolvedEvent

type BreakpointResolvedEvent struct {
	BreakpointId BreakpointId `json:"breakpointId"` // Breakpoint unique identifier.
	Location     Location     `json:"location"`     // Actual breakpoint location.
}

type CallFrame

type CallFrame struct {
	CallFrameId      CallFrameId           `json:"callFrameId"`                // Call frame identifier. This identifier is only valid while the virtual machine is paused.
	FunctionName     string                `json:"functionName"`               // Name of the JavaScript function called on this call frame.
	FunctionLocation *Location             `json:"functionLocation,omitempty"` // [Experimental] Location in the source code.
	Location         Location              `json:"location"`                   // Location in the source code.
	ScopeChain       []Scope               `json:"scopeChain"`                 // Scope chain for this call frame.
	This             runtime.RemoteObject  `json:"this"`                       // <code>this</code> object for this call frame.
	ReturnValue      *runtime.RemoteObject `json:"returnValue,omitempty"`      // The value being returned, if the function is at return point.
}

type CallFrameId

type CallFrameId string

type ContinueToLocationCommand

type ContinueToLocationCommand struct {
	DestinationTargetID string

	Location Location `json:"location"` // Location to continue to.
	// contains filtered or unexported fields
}

func (*ContinueToLocationCommand) Initalize

func (c *ContinueToLocationCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ContinueToLocationCommand) Respond

func (c *ContinueToLocationCommand) Respond()

func (*ContinueToLocationCommand) RespondWithError

func (c *ContinueToLocationCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ContinueToLocationCommandFn

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

func (*ContinueToLocationCommandFn) Load

func (*ContinueToLocationCommandFn) Store

type ContinueToLocationReturn

type ContinueToLocationReturn struct {
}

type DebuggerAgent

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

func NewAgent

func NewAgent(conn *shared.Connection) *DebuggerAgent

func (*DebuggerAgent) FireBreakpointResolved

func (agent *DebuggerAgent) FireBreakpointResolved(event BreakpointResolvedEvent)

func (*DebuggerAgent) FireBreakpointResolvedOnTarget

func (agent *DebuggerAgent) FireBreakpointResolvedOnTarget(targetId string, event BreakpointResolvedEvent)

func (*DebuggerAgent) FirePaused

func (agent *DebuggerAgent) FirePaused(event PausedEvent)

func (*DebuggerAgent) FirePausedOnTarget

func (agent *DebuggerAgent) FirePausedOnTarget(targetId string, event PausedEvent)

func (*DebuggerAgent) FireResumed

func (agent *DebuggerAgent) FireResumed()

func (*DebuggerAgent) FireResumedOnTarget

func (agent *DebuggerAgent) FireResumedOnTarget(targetId string)

func (*DebuggerAgent) FireScriptFailedToParse

func (agent *DebuggerAgent) FireScriptFailedToParse(event ScriptFailedToParseEvent)

func (*DebuggerAgent) FireScriptFailedToParseOnTarget

func (agent *DebuggerAgent) FireScriptFailedToParseOnTarget(targetId string, event ScriptFailedToParseEvent)

func (*DebuggerAgent) FireScriptParsed

func (agent *DebuggerAgent) FireScriptParsed(event ScriptParsedEvent)

Dispatchable Events

func (*DebuggerAgent) FireScriptParsedOnTarget

func (agent *DebuggerAgent) FireScriptParsedOnTarget(targetId string, event ScriptParsedEvent)

func (*DebuggerAgent) Name

func (agent *DebuggerAgent) Name() string

func (*DebuggerAgent) ProcessCommand

func (agent *DebuggerAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*DebuggerAgent) SetContinueToLocationHandler

func (agent *DebuggerAgent) SetContinueToLocationHandler(handler func(ContinueToLocationCommand))

func (*DebuggerAgent) SetDisableHandler

func (agent *DebuggerAgent) SetDisableHandler(handler func(DisableCommand))

func (*DebuggerAgent) SetEnableHandler

func (agent *DebuggerAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*DebuggerAgent) SetEvaluateOnCallFrameHandler

func (agent *DebuggerAgent) SetEvaluateOnCallFrameHandler(handler func(EvaluateOnCallFrameCommand))

func (*DebuggerAgent) SetGetPossibleBreakpointsHandler

func (agent *DebuggerAgent) SetGetPossibleBreakpointsHandler(handler func(GetPossibleBreakpointsCommand))

func (*DebuggerAgent) SetGetScriptSourceHandler

func (agent *DebuggerAgent) SetGetScriptSourceHandler(handler func(GetScriptSourceCommand))

func (*DebuggerAgent) SetPauseHandler

func (agent *DebuggerAgent) SetPauseHandler(handler func(PauseCommand))

func (*DebuggerAgent) SetRemoveBreakpointHandler

func (agent *DebuggerAgent) SetRemoveBreakpointHandler(handler func(RemoveBreakpointCommand))

func (*DebuggerAgent) SetRestartFrameHandler

func (agent *DebuggerAgent) SetRestartFrameHandler(handler func(RestartFrameCommand))

func (*DebuggerAgent) SetResumeHandler

func (agent *DebuggerAgent) SetResumeHandler(handler func(ResumeCommand))

func (*DebuggerAgent) SetSearchInContentHandler

func (agent *DebuggerAgent) SetSearchInContentHandler(handler func(SearchInContentCommand))

func (*DebuggerAgent) SetSetAsyncCallStackDepthHandler

func (agent *DebuggerAgent) SetSetAsyncCallStackDepthHandler(handler func(SetAsyncCallStackDepthCommand))

func (*DebuggerAgent) SetSetBlackboxPatternsHandler

func (agent *DebuggerAgent) SetSetBlackboxPatternsHandler(handler func(SetBlackboxPatternsCommand))

func (*DebuggerAgent) SetSetBlackboxedRangesHandler

func (agent *DebuggerAgent) SetSetBlackboxedRangesHandler(handler func(SetBlackboxedRangesCommand))

func (*DebuggerAgent) SetSetBreakpointByUrlHandler

func (agent *DebuggerAgent) SetSetBreakpointByUrlHandler(handler func(SetBreakpointByUrlCommand))

func (*DebuggerAgent) SetSetBreakpointHandler

func (agent *DebuggerAgent) SetSetBreakpointHandler(handler func(SetBreakpointCommand))

func (*DebuggerAgent) SetSetBreakpointsActiveHandler

func (agent *DebuggerAgent) SetSetBreakpointsActiveHandler(handler func(SetBreakpointsActiveCommand))

func (*DebuggerAgent) SetSetPauseOnExceptionsHandler

func (agent *DebuggerAgent) SetSetPauseOnExceptionsHandler(handler func(SetPauseOnExceptionsCommand))

func (*DebuggerAgent) SetSetScriptSourceHandler

func (agent *DebuggerAgent) SetSetScriptSourceHandler(handler func(SetScriptSourceCommand))

func (*DebuggerAgent) SetSetSkipAllPausesHandler

func (agent *DebuggerAgent) SetSetSkipAllPausesHandler(handler func(SetSkipAllPausesCommand))

func (*DebuggerAgent) SetSetVariableValueHandler

func (agent *DebuggerAgent) SetSetVariableValueHandler(handler func(SetVariableValueCommand))

func (*DebuggerAgent) SetStepIntoHandler

func (agent *DebuggerAgent) SetStepIntoHandler(handler func(StepIntoCommand))

func (*DebuggerAgent) SetStepOutHandler

func (agent *DebuggerAgent) SetStepOutHandler(handler func(StepOutCommand))

func (*DebuggerAgent) SetStepOverHandler

func (agent *DebuggerAgent) SetStepOverHandler(handler func(StepOverCommand))

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

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

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

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

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type EvaluateOnCallFrameCommand

type EvaluateOnCallFrameCommand struct {
	DestinationTargetID string

	CallFrameId           CallFrameId `json:"callFrameId"`                     // Call frame identifier to evaluate on.
	Expression            string      `json:"expression"`                      // Expression to evaluate.
	ObjectGroup           *string     `json:"objectGroup,omitempty"`           // String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
	IncludeCommandLineAPI *bool       `json:"includeCommandLineAPI,omitempty"` // Specifies whether command line API should be available to the evaluated expression, defaults to false.
	Silent                *bool       `json:"silent,omitempty"`                // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
	ReturnByValue         *bool       `json:"returnByValue,omitempty"`         // Whether the result is expected to be a JSON object that should be sent by value.
	GeneratePreview       *bool       `json:"generatePreview,omitempty"`       // [Experimental] Whether preview should be generated for the result.
	ThrowOnSideEffect     *bool       `json:"throwOnSideEffect,omitempty"`     // [Experimental] Whether to throw an exception if side effect cannot be ruled out during evaluation.
	// contains filtered or unexported fields
}

func (*EvaluateOnCallFrameCommand) Initalize

func (c *EvaluateOnCallFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EvaluateOnCallFrameCommand) Respond

func (*EvaluateOnCallFrameCommand) RespondWithError

func (c *EvaluateOnCallFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EvaluateOnCallFrameCommandFn

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

func (*EvaluateOnCallFrameCommandFn) Load

func (*EvaluateOnCallFrameCommandFn) Store

type EvaluateOnCallFrameReturn

type EvaluateOnCallFrameReturn struct {
	Result           runtime.RemoteObject      `json:"result"`                     // Object wrapper for the evaluation result.
	ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

type GetPossibleBreakpointsCommand

type GetPossibleBreakpointsCommand struct {
	DestinationTargetID string

	Start Location  `json:"start"`         // Start of range to search possible breakpoint locations in.
	End   *Location `json:"end,omitempty"` // End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range.
	// contains filtered or unexported fields
}

func (*GetPossibleBreakpointsCommand) Initalize

func (c *GetPossibleBreakpointsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetPossibleBreakpointsCommand) Respond

func (*GetPossibleBreakpointsCommand) RespondWithError

func (c *GetPossibleBreakpointsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetPossibleBreakpointsCommandFn

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

func (*GetPossibleBreakpointsCommandFn) Load

func (*GetPossibleBreakpointsCommandFn) Store

type GetPossibleBreakpointsReturn

type GetPossibleBreakpointsReturn struct {
	Locations []Location `json:"locations"` // List of the possible breakpoint locations.
}

type GetScriptSourceCommand

type GetScriptSourceCommand struct {
	DestinationTargetID string

	ScriptId runtime.ScriptId `json:"scriptId"` // Id of the script to get source for.
	// contains filtered or unexported fields
}

func (*GetScriptSourceCommand) Initalize

func (c *GetScriptSourceCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetScriptSourceCommand) Respond

func (*GetScriptSourceCommand) RespondWithError

func (c *GetScriptSourceCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetScriptSourceCommandFn

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

func (*GetScriptSourceCommandFn) Load

func (*GetScriptSourceCommandFn) Store

type GetScriptSourceReturn

type GetScriptSourceReturn struct {
	ScriptSource string `json:"scriptSource"` // Script source.
}

type Location

type Location struct {
	ScriptId     runtime.ScriptId `json:"scriptId"`               // Script identifier as reported in the <code>Debugger.scriptParsed</code>.
	LineNumber   int64            `json:"lineNumber"`             // Line number in the script (0-based).
	ColumnNumber *int64           `json:"columnNumber,omitempty"` // Column number in the script (0-based).
}

type PauseCommand

type PauseCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*PauseCommand) Initalize

func (c *PauseCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*PauseCommand) Respond

func (c *PauseCommand) Respond()

func (*PauseCommand) RespondWithError

func (c *PauseCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type PauseCommandFn

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

func (*PauseCommandFn) Load

func (a *PauseCommandFn) Load() func(PauseCommand)

func (*PauseCommandFn) Store

func (a *PauseCommandFn) Store(fn func(PauseCommand))

type PauseReturn

type PauseReturn struct {
}

type PausedEvent

type PausedEvent struct {
	CallFrames      []CallFrame         `json:"callFrames"`                // Call stack the virtual machine stopped on.
	Reason          PausedReasonEnum    `json:"reason"`                    // Pause reason.
	Data            *map[string]string  `json:"data,omitempty"`            // Object containing break-specific auxiliary properties.
	HitBreakpoints  *[]string           `json:"hitBreakpoints,omitempty"`  // Hit breakpoints IDs
	AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
}

type PausedReasonEnum

type PausedReasonEnum string
const (
	PausedReasonXHR              PausedReasonEnum = "XHR"
	PausedReasonDOM              PausedReasonEnum = "DOM"
	PausedReasonEventListener    PausedReasonEnum = "EventListener"
	PausedReasonException        PausedReasonEnum = "exception"
	PausedReasonAssert           PausedReasonEnum = "assert"
	PausedReasonDebugCommand     PausedReasonEnum = "debugCommand"
	PausedReasonPromiseRejection PausedReasonEnum = "promiseRejection"
	PausedReasonOOM              PausedReasonEnum = "OOM"
	PausedReasonOther            PausedReasonEnum = "other"
	PausedReasonAmbiguous        PausedReasonEnum = "ambiguous"
)

type RemoveBreakpointCommand

type RemoveBreakpointCommand struct {
	DestinationTargetID string

	BreakpointId BreakpointId `json:"breakpointId"`
	// contains filtered or unexported fields
}

func (*RemoveBreakpointCommand) Initalize

func (c *RemoveBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RemoveBreakpointCommand) Respond

func (c *RemoveBreakpointCommand) Respond()

func (*RemoveBreakpointCommand) RespondWithError

func (c *RemoveBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RemoveBreakpointCommandFn

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

func (*RemoveBreakpointCommandFn) Load

func (*RemoveBreakpointCommandFn) Store

type RemoveBreakpointReturn

type RemoveBreakpointReturn struct {
}

type RestartFrameCommand

type RestartFrameCommand struct {
	DestinationTargetID string

	CallFrameId CallFrameId `json:"callFrameId"` // Call frame identifier to evaluate on.
	// contains filtered or unexported fields
}

func (*RestartFrameCommand) Initalize

func (c *RestartFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RestartFrameCommand) Respond

func (c *RestartFrameCommand) Respond(r *RestartFrameReturn)

func (*RestartFrameCommand) RespondWithError

func (c *RestartFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RestartFrameCommandFn

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

func (*RestartFrameCommandFn) Load

func (*RestartFrameCommandFn) Store

func (a *RestartFrameCommandFn) Store(fn func(RestartFrameCommand))

type RestartFrameReturn

type RestartFrameReturn struct {
	CallFrames      []CallFrame         `json:"callFrames"`                // New stack trace.
	AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
}

type ResumeCommand

type ResumeCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*ResumeCommand) Initalize

func (c *ResumeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ResumeCommand) Respond

func (c *ResumeCommand) Respond()

func (*ResumeCommand) RespondWithError

func (c *ResumeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ResumeCommandFn

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

func (*ResumeCommandFn) Load

func (a *ResumeCommandFn) Load() func(ResumeCommand)

func (*ResumeCommandFn) Store

func (a *ResumeCommandFn) Store(fn func(ResumeCommand))

type ResumeReturn

type ResumeReturn struct {
}

type ResumedEvent

type ResumedEvent struct {
}

type Scope

type Scope struct {
	Type          ScopeTypeEnum        `json:"type"`   // Scope type.
	Object        runtime.RemoteObject `json:"object"` // Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
	Name          *string              `json:"name,omitempty"`
	StartLocation *Location            `json:"startLocation,omitempty"` // Location in the source code where scope starts
	EndLocation   *Location            `json:"endLocation,omitempty"`   // Location in the source code where scope ends
}

type ScopeTypeEnum

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

type ScriptFailedToParseEvent

type ScriptFailedToParseEvent struct {
	ScriptId                runtime.ScriptId           `json:"scriptId"`                          // Identifier of the script parsed.
	Url                     string                     `json:"url"`                               // URL or name of the script parsed (if any).
	StartLine               int64                      `json:"startLine"`                         // Line offset of the script within the resource with given URL (for script tags).
	StartColumn             int64                      `json:"startColumn"`                       // Column offset of the script within the resource with given URL.
	EndLine                 int64                      `json:"endLine"`                           // Last line of the script.
	EndColumn               int64                      `json:"endColumn"`                         // Length of the last line of the script.
	ExecutionContextId      runtime.ExecutionContextId `json:"executionContextId"`                // Specifies script creation context.
	Hash                    string                     `json:"hash"`                              // Content hash of the script.
	ExecutionContextAuxData *map[string]string         `json:"executionContextAuxData,omitempty"` // Embedder-specific auxiliary data.
	SourceMapURL            *string                    `json:"sourceMapURL,omitempty"`            // URL of source map associated with script (if any).
	HasSourceURL            *bool                      `json:"hasSourceURL,omitempty"`            // [Experimental] True, if this script has sourceURL.
	IsModule                *bool                      `json:"isModule,omitempty"`                // [Experimental] True, if this script is ES6 module.
}

type ScriptParsedEvent

type ScriptParsedEvent struct {
	ScriptId                runtime.ScriptId           `json:"scriptId"`                          // Identifier of the script parsed.
	Url                     string                     `json:"url"`                               // URL or name of the script parsed (if any).
	StartLine               int64                      `json:"startLine"`                         // Line offset of the script within the resource with given URL (for script tags).
	StartColumn             int64                      `json:"startColumn"`                       // Column offset of the script within the resource with given URL.
	EndLine                 int64                      `json:"endLine"`                           // Last line of the script.
	EndColumn               int64                      `json:"endColumn"`                         // Length of the last line of the script.
	ExecutionContextId      runtime.ExecutionContextId `json:"executionContextId"`                // Specifies script creation context.
	Hash                    string                     `json:"hash"`                              // Content hash of the script.
	ExecutionContextAuxData *map[string]string         `json:"executionContextAuxData,omitempty"` // Embedder-specific auxiliary data.
	IsLiveEdit              *bool                      `json:"isLiveEdit,omitempty"`              // [Experimental] True, if this script is generated as a result of the live edit operation.
	SourceMapURL            *string                    `json:"sourceMapURL,omitempty"`            // URL of source map associated with script (if any).
	HasSourceURL            *bool                      `json:"hasSourceURL,omitempty"`            // [Experimental] True, if this script has sourceURL.
	IsModule                *bool                      `json:"isModule,omitempty"`                // [Experimental] True, if this script is ES6 module.
}

type ScriptPosition

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

type SearchInContentCommand

type SearchInContentCommand struct {
	DestinationTargetID string

	ScriptId      runtime.ScriptId `json:"scriptId"`                // Id of the script to search in.
	Query         string           `json:"query"`                   // String to search for.
	CaseSensitive *bool            `json:"caseSensitive,omitempty"` // If true, search is case sensitive.
	IsRegex       *bool            `json:"isRegex,omitempty"`       // If true, treats string parameter as regex.
	// contains filtered or unexported fields
}

func (*SearchInContentCommand) Initalize

func (c *SearchInContentCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SearchInContentCommand) Respond

func (*SearchInContentCommand) RespondWithError

func (c *SearchInContentCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SearchInContentCommandFn

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

func (*SearchInContentCommandFn) Load

func (*SearchInContentCommandFn) Store

type SearchInContentReturn

type SearchInContentReturn struct {
	Result []SearchMatch `json:"result"` // List of search matches.
}

type SearchMatch

type SearchMatch struct {
	LineNumber  float64 `json:"lineNumber"`  // Line number in resource content.
	LineContent string  `json:"lineContent"` // Line with match content.
}

type SetAsyncCallStackDepthCommand

type SetAsyncCallStackDepthCommand struct {
	DestinationTargetID string

	MaxDepth int64 `json:"maxDepth"` // Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
	// contains filtered or unexported fields
}

func (*SetAsyncCallStackDepthCommand) Initalize

func (c *SetAsyncCallStackDepthCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetAsyncCallStackDepthCommand) Respond

func (c *SetAsyncCallStackDepthCommand) Respond()

func (*SetAsyncCallStackDepthCommand) RespondWithError

func (c *SetAsyncCallStackDepthCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetAsyncCallStackDepthCommandFn

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

func (*SetAsyncCallStackDepthCommandFn) Load

func (*SetAsyncCallStackDepthCommandFn) Store

type SetAsyncCallStackDepthReturn

type SetAsyncCallStackDepthReturn struct {
}

type SetBlackboxPatternsCommand

type SetBlackboxPatternsCommand struct {
	DestinationTargetID string

	Patterns []string `json:"patterns"` // Array of regexps that will be used to check script url for blackbox state.
	// contains filtered or unexported fields
}

func (*SetBlackboxPatternsCommand) Initalize

func (c *SetBlackboxPatternsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBlackboxPatternsCommand) Respond

func (c *SetBlackboxPatternsCommand) Respond()

func (*SetBlackboxPatternsCommand) RespondWithError

func (c *SetBlackboxPatternsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBlackboxPatternsCommandFn

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

func (*SetBlackboxPatternsCommandFn) Load

func (*SetBlackboxPatternsCommandFn) Store

type SetBlackboxPatternsReturn

type SetBlackboxPatternsReturn struct {
}

type SetBlackboxedRangesCommand

type SetBlackboxedRangesCommand struct {
	DestinationTargetID string

	ScriptId  runtime.ScriptId `json:"scriptId"` // Id of the script.
	Positions []ScriptPosition `json:"positions"`
	// contains filtered or unexported fields
}

func (*SetBlackboxedRangesCommand) Initalize

func (c *SetBlackboxedRangesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBlackboxedRangesCommand) Respond

func (c *SetBlackboxedRangesCommand) Respond()

func (*SetBlackboxedRangesCommand) RespondWithError

func (c *SetBlackboxedRangesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBlackboxedRangesCommandFn

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

func (*SetBlackboxedRangesCommandFn) Load

func (*SetBlackboxedRangesCommandFn) Store

type SetBlackboxedRangesReturn

type SetBlackboxedRangesReturn struct {
}

type SetBreakpointByUrlCommand

type SetBreakpointByUrlCommand struct {
	DestinationTargetID string

	LineNumber   int64   `json:"lineNumber"`             // Line number to set breakpoint at.
	Url          *string `json:"url,omitempty"`          // URL of the resources to set breakpoint on.
	UrlRegex     *string `json:"urlRegex,omitempty"`     // Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
	ColumnNumber *int64  `json:"columnNumber,omitempty"` // Offset in the line to set breakpoint at.
	Condition    *string `json:"condition,omitempty"`    // Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
	// contains filtered or unexported fields
}

func (*SetBreakpointByUrlCommand) Initalize

func (c *SetBreakpointByUrlCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBreakpointByUrlCommand) Respond

func (*SetBreakpointByUrlCommand) RespondWithError

func (c *SetBreakpointByUrlCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBreakpointByUrlCommandFn

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

func (*SetBreakpointByUrlCommandFn) Load

func (*SetBreakpointByUrlCommandFn) Store

type SetBreakpointByUrlReturn

type SetBreakpointByUrlReturn struct {
	BreakpointId BreakpointId `json:"breakpointId"` // Id of the created breakpoint for further reference.
	Locations    []Location   `json:"locations"`    // List of the locations this breakpoint resolved into upon addition.
}

type SetBreakpointCommand

type SetBreakpointCommand struct {
	DestinationTargetID string

	Location  Location `json:"location"`            // Location to set breakpoint in.
	Condition *string  `json:"condition,omitempty"` // Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
	// contains filtered or unexported fields
}

func (*SetBreakpointCommand) Initalize

func (c *SetBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBreakpointCommand) Respond

func (*SetBreakpointCommand) RespondWithError

func (c *SetBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBreakpointCommandFn

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

func (*SetBreakpointCommandFn) Load

func (*SetBreakpointCommandFn) Store

func (a *SetBreakpointCommandFn) Store(fn func(SetBreakpointCommand))

type SetBreakpointReturn

type SetBreakpointReturn struct {
	BreakpointId   BreakpointId `json:"breakpointId"`   // Id of the created breakpoint for further reference.
	ActualLocation Location     `json:"actualLocation"` // Location this breakpoint resolved into.
}

type SetBreakpointsActiveCommand

type SetBreakpointsActiveCommand struct {
	DestinationTargetID string

	Active bool `json:"active"` // New value for breakpoints active state.
	// contains filtered or unexported fields
}

func (*SetBreakpointsActiveCommand) Initalize

func (c *SetBreakpointsActiveCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBreakpointsActiveCommand) Respond

func (c *SetBreakpointsActiveCommand) Respond()

func (*SetBreakpointsActiveCommand) RespondWithError

func (c *SetBreakpointsActiveCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBreakpointsActiveCommandFn

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

func (*SetBreakpointsActiveCommandFn) Load

func (*SetBreakpointsActiveCommandFn) Store

type SetBreakpointsActiveReturn

type SetBreakpointsActiveReturn struct {
}

type SetPauseOnExceptionsCommand

type SetPauseOnExceptionsCommand struct {
	DestinationTargetID string

	State SetPauseOnExceptionsStateEnum `json:"state"` // Pause on exceptions mode.
	// contains filtered or unexported fields
}

func (*SetPauseOnExceptionsCommand) Initalize

func (c *SetPauseOnExceptionsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetPauseOnExceptionsCommand) Respond

func (c *SetPauseOnExceptionsCommand) Respond()

func (*SetPauseOnExceptionsCommand) RespondWithError

func (c *SetPauseOnExceptionsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetPauseOnExceptionsCommandFn

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

func (*SetPauseOnExceptionsCommandFn) Load

func (*SetPauseOnExceptionsCommandFn) Store

type SetPauseOnExceptionsReturn

type SetPauseOnExceptionsReturn struct {
}

type SetPauseOnExceptionsStateEnum

type SetPauseOnExceptionsStateEnum string
const (
	SetPauseOnExceptionsStateNone     SetPauseOnExceptionsStateEnum = "none"
	SetPauseOnExceptionsStateUncaught SetPauseOnExceptionsStateEnum = "uncaught"
	SetPauseOnExceptionsStateAll      SetPauseOnExceptionsStateEnum = "all"
)

type SetScriptSourceCommand

type SetScriptSourceCommand struct {
	DestinationTargetID string

	ScriptId     runtime.ScriptId `json:"scriptId"`         // Id of the script to edit.
	ScriptSource string           `json:"scriptSource"`     // New content of the script.
	DryRun       *bool            `json:"dryRun,omitempty"` //  If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
	// contains filtered or unexported fields
}

func (*SetScriptSourceCommand) Initalize

func (c *SetScriptSourceCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetScriptSourceCommand) Respond

func (*SetScriptSourceCommand) RespondWithError

func (c *SetScriptSourceCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetScriptSourceCommandFn

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

func (*SetScriptSourceCommandFn) Load

func (*SetScriptSourceCommandFn) Store

type SetScriptSourceReturn

type SetScriptSourceReturn struct {
	CallFrames       *[]CallFrame              `json:"callFrames,omitempty"`       // New stack trace in case editing has happened while VM was stopped.
	StackChanged     *bool                     `json:"stackChanged,omitempty"`     // Whether current call stack  was modified after applying the changes.
	AsyncStackTrace  *runtime.StackTrace       `json:"asyncStackTrace,omitempty"`  // Async stack trace, if any.
	ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details if any.
}

type SetSkipAllPausesCommand

type SetSkipAllPausesCommand struct {
	DestinationTargetID string

	Skip bool `json:"skip"` // New value for skip pauses state.
	// contains filtered or unexported fields
}

func (*SetSkipAllPausesCommand) Initalize

func (c *SetSkipAllPausesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetSkipAllPausesCommand) Respond

func (c *SetSkipAllPausesCommand) Respond()

func (*SetSkipAllPausesCommand) RespondWithError

func (c *SetSkipAllPausesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetSkipAllPausesCommandFn

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

func (*SetSkipAllPausesCommandFn) Load

func (*SetSkipAllPausesCommandFn) Store

type SetSkipAllPausesReturn

type SetSkipAllPausesReturn struct {
}

type SetVariableValueCommand

type SetVariableValueCommand struct {
	DestinationTargetID string

	ScopeNumber  int64                `json:"scopeNumber"`  // 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.
	VariableName string               `json:"variableName"` // Variable name.
	NewValue     runtime.CallArgument `json:"newValue"`     // New variable value.
	CallFrameId  CallFrameId          `json:"callFrameId"`  // Id of callframe that holds variable.
	// contains filtered or unexported fields
}

func (*SetVariableValueCommand) Initalize

func (c *SetVariableValueCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetVariableValueCommand) Respond

func (c *SetVariableValueCommand) Respond()

func (*SetVariableValueCommand) RespondWithError

func (c *SetVariableValueCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetVariableValueCommandFn

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

func (*SetVariableValueCommandFn) Load

func (*SetVariableValueCommandFn) Store

type SetVariableValueReturn

type SetVariableValueReturn struct {
}

type StepIntoCommand

type StepIntoCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StepIntoCommand) Initalize

func (c *StepIntoCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StepIntoCommand) Respond

func (c *StepIntoCommand) Respond()

func (*StepIntoCommand) RespondWithError

func (c *StepIntoCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StepIntoCommandFn

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

func (*StepIntoCommandFn) Load

func (a *StepIntoCommandFn) Load() func(StepIntoCommand)

func (*StepIntoCommandFn) Store

func (a *StepIntoCommandFn) Store(fn func(StepIntoCommand))

type StepIntoReturn

type StepIntoReturn struct {
}

type StepOutCommand

type StepOutCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StepOutCommand) Initalize

func (c *StepOutCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StepOutCommand) Respond

func (c *StepOutCommand) Respond()

func (*StepOutCommand) RespondWithError

func (c *StepOutCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StepOutCommandFn

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

func (*StepOutCommandFn) Load

func (a *StepOutCommandFn) Load() func(StepOutCommand)

func (*StepOutCommandFn) Store

func (a *StepOutCommandFn) Store(fn func(StepOutCommand))

type StepOutReturn

type StepOutReturn struct {
}

type StepOverCommand

type StepOverCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StepOverCommand) Initalize

func (c *StepOverCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StepOverCommand) Respond

func (c *StepOverCommand) Respond()

func (*StepOverCommand) RespondWithError

func (c *StepOverCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StepOverCommandFn

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

func (*StepOverCommandFn) Load

func (a *StepOverCommandFn) Load() func(StepOverCommand)

func (*StepOverCommandFn) Store

func (a *StepOverCommandFn) Store(fn func(StepOverCommand))

type StepOverReturn

type StepOverReturn struct {
}

Jump to

Keyboard shortcuts

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