Jump to headingSession.prototype.post(method: string,callback?: (err: Error | null,params?: object,) => void,): void
Posts a message to the inspector back-end. callback
will be notified when
a response is received. callback
is a function that accepts two optional
arguments: error and message-specific result.
session.post('Runtime.evaluate', { expression: '2 + 2' },
(error, { result }) => console.log(result));
// Output: { type: 'number', value: 4, description: '4' }
The latest version of the V8 inspector protocol is published on the Chrome DevTools Protocol Viewer.
Node.js inspector supports all the Chrome DevTools Protocol domains declared by V8. Chrome DevTools Protocol domain provides an interface for interacting with one of the runtime agents used to inspect the application state and listen to the run-time events.
Parameters Jump to heading
Jump to headingmethod: string
Jump to headingcallback: (err: Error | null,params?: object,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: string,params?: object,callback?: (err: Error | null,params?: object,) => void,): void
Parameters Jump to heading
Jump to headingmethod: string
Jump to headingparams: object
Jump to headingcallback: (err: Error | null,params?: object,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Schema.getDomains",callback?: (err: Error | null,params: Schema.GetDomainsReturnType,) => void,): void
Returns supported domains.
Parameters Jump to heading
Jump to headingmethod: "Schema.getDomains"
Jump to headingcallback: (err: Error | null,params: Schema.GetDomainsReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.evaluate",params?: Runtime.EvaluateParameterType,callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): void
Evaluates expression on global object.
Parameters Jump to heading
Jump to headingmethod: "Runtime.evaluate"
Jump to headingparams: Runtime.EvaluateParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.EvaluateReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.evaluate",callback?: (err: Error | null,params: Runtime.EvaluateReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.evaluate"
Jump to headingcallback: (err: Error | null,params: Runtime.EvaluateReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.awaitPromise",params?: Runtime.AwaitPromiseParameterType,callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): void
Add handler to promise with given promise object id.
Parameters Jump to heading
Jump to headingmethod: "Runtime.awaitPromise"
Jump to headingparams: Runtime.AwaitPromiseParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.awaitPromise",callback?: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.awaitPromise"
Jump to headingcallback: (err: Error | null,params: Runtime.AwaitPromiseReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.callFunctionOn",params?: Runtime.CallFunctionOnParameterType,callback?: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void,): void
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Parameters Jump to heading
Jump to headingmethod: "Runtime.callFunctionOn"
Jump to headingparams: Runtime.CallFunctionOnParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.callFunctionOn",callback?: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.callFunctionOn"
Jump to headingcallback: (err: Error | null,params: Runtime.CallFunctionOnReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.getProperties",params?: Runtime.GetPropertiesParameterType,callback?: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void,): void
Returns properties of a given object. Object group of the result is inherited from the target object.
Parameters Jump to heading
Jump to headingmethod: "Runtime.getProperties"
Jump to headingparams: Runtime.GetPropertiesParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.getProperties",callback?: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.getProperties"
Jump to headingcallback: (err: Error | null,params: Runtime.GetPropertiesReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.releaseObject",params?: Runtime.ReleaseObjectParameterType,callback?: (err: Error | null) => void,): void
Releases remote object with given id.
Parameters Jump to heading
Jump to headingmethod: "Runtime.releaseObject"
Jump to headingparams: Runtime.ReleaseObjectParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.releaseObject",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.releaseObject"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.releaseObjectGroup",params?: Runtime.ReleaseObjectGroupParameterType,callback?: (err: Error | null) => void,): void
Releases all remote objects that belong to a given group.
Parameters Jump to heading
Jump to headingmethod: "Runtime.releaseObjectGroup"
Jump to headingparams: Runtime.ReleaseObjectGroupParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.releaseObjectGroup",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.releaseObjectGroup"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.runIfWaitingForDebugger",callback?: (err: Error | null) => void,): void
Tells inspected instance to run if it was waiting for debugger to attach.
Parameters Jump to heading
Jump to headingmethod: "Runtime.runIfWaitingForDebugger"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.enable",callback?: (err: Error | null) => void,): void
Enables reporting of execution contexts creation by means of executionContextCreated
event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
Parameters Jump to heading
Jump to headingmethod: "Runtime.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.disable",callback?: (err: Error | null) => void,): void
Disables reporting of execution contexts creation.
Parameters Jump to heading
Jump to headingmethod: "Runtime.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.discardConsoleEntries",callback?: (err: Error | null) => void,): void
Discards collected exceptions and console API calls.
Parameters Jump to heading
Jump to headingmethod: "Runtime.discardConsoleEntries"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.setCustomObjectFormatterEnabled",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.setCustomObjectFormatterEnabled"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.setCustomObjectFormatterEnabled",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.setCustomObjectFormatterEnabled"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.compileScript",params?: Runtime.CompileScriptParameterType,callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): void
Compiles expression.
Parameters Jump to heading
Jump to headingmethod: "Runtime.compileScript"
Jump to headingparams: Runtime.CompileScriptParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.compileScript",callback?: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.compileScript"
Jump to headingcallback: (err: Error | null,params: Runtime.CompileScriptReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.runScript",params?: Runtime.RunScriptParameterType,callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): void
Runs script with given id in a given context.
Parameters Jump to heading
Jump to headingmethod: "Runtime.runScript"
Jump to headingparams: Runtime.RunScriptParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.RunScriptReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.runScript",callback?: (err: Error | null,params: Runtime.RunScriptReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.runScript"
Jump to headingcallback: (err: Error | null,params: Runtime.RunScriptReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.queryObjects",params?: Runtime.QueryObjectsParameterType,callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.queryObjects"
Jump to headingparams: Runtime.QueryObjectsParameterType
Jump to headingcallback: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.queryObjects",callback?: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.queryObjects"
Jump to headingcallback: (err: Error | null,params: Runtime.QueryObjectsReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.globalLexicalScopeNames",callback?: (err: Error | null,) => void,): void
Returns all let, const and class variables from global scope.
Parameters Jump to heading
Jump to headingmethod: "Runtime.globalLexicalScopeNames"
Jump to headingparams: Runtime.GlobalLexicalScopeNamesParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Runtime.globalLexicalScopeNames",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Runtime.globalLexicalScopeNames"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.enable",callback?: (err: Error | null,params: Debugger.EnableReturnType,) => void,): void
Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
Parameters Jump to heading
Jump to headingmethod: "Debugger.enable"
Jump to headingcallback: (err: Error | null,params: Debugger.EnableReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.disable",callback?: (err: Error | null) => void,): void
Disables debugger for given page.
Parameters Jump to heading
Jump to headingmethod: "Debugger.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpointsActive",callback?: (err: Error | null) => void,): void
Activates / deactivates all breakpoints on the page.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpointsActive"
Jump to headingparams: Debugger.SetBreakpointsActiveParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpointsActive",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpointsActive"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setSkipAllPauses",params?: Debugger.SetSkipAllPausesParameterType,callback?: (err: Error | null) => void,): void
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
Parameters Jump to heading
Jump to headingmethod: "Debugger.setSkipAllPauses"
Jump to headingparams: Debugger.SetSkipAllPausesParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setSkipAllPauses",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setSkipAllPauses"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpointByUrl",params?: Debugger.SetBreakpointByUrlParameterType,callback?: (err: Error | null,) => void,): void
Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations
property. Further matching script parsing will result in subsequent breakpointResolved
events issued. This logical breakpoint will survive page reloads.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpointByUrl"
Jump to headingparams: Debugger.SetBreakpointByUrlParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpointByUrl",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpointByUrl"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpoint",params?: Debugger.SetBreakpointParameterType,callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): void
Sets JavaScript breakpoint at a given location.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpoint"
Jump to headingparams: Debugger.SetBreakpointParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBreakpoint",callback?: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBreakpoint"
Jump to headingcallback: (err: Error | null,params: Debugger.SetBreakpointReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.removeBreakpoint",params?: Debugger.RemoveBreakpointParameterType,callback?: (err: Error | null) => void,): void
Removes JavaScript breakpoint.
Parameters Jump to heading
Jump to headingmethod: "Debugger.removeBreakpoint"
Jump to headingparams: Debugger.RemoveBreakpointParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.removeBreakpoint",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.removeBreakpoint"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getPossibleBreakpoints",callback?: (err: Error | null,) => void,): void
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
Parameters Jump to heading
Jump to headingmethod: "Debugger.getPossibleBreakpoints"
Jump to headingparams: Debugger.GetPossibleBreakpointsParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getPossibleBreakpoints",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.getPossibleBreakpoints"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.continueToLocation",params?: Debugger.ContinueToLocationParameterType,callback?: (err: Error | null) => void,): void
Continues execution until specific location is reached.
Parameters Jump to heading
Jump to headingmethod: "Debugger.continueToLocation"
Jump to headingparams: Debugger.ContinueToLocationParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.continueToLocation",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.continueToLocation"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.pauseOnAsyncCall",params?: Debugger.PauseOnAsyncCallParameterType,callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.pauseOnAsyncCall"
Jump to headingparams: Debugger.PauseOnAsyncCallParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.pauseOnAsyncCall",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.pauseOnAsyncCall"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.stepOver",callback?: (err: Error | null) => void,): void
Steps over the statement.
Parameters Jump to heading
Jump to headingmethod: "Debugger.stepOver"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.stepInto",params?: Debugger.StepIntoParameterType,callback?: (err: Error | null) => void,): void
Steps into the function call.
Parameters Jump to heading
Jump to headingmethod: "Debugger.stepInto"
Jump to headingparams: Debugger.StepIntoParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.stepInto",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.stepInto"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.stepOut",callback?: (err: Error | null) => void,): void
Steps out of the function call.
Parameters Jump to heading
Jump to headingmethod: "Debugger.stepOut"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.pause",callback?: (err: Error | null) => void,): void
Stops on the next JavaScript statement.
Parameters Jump to heading
Jump to headingmethod: "Debugger.pause"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.scheduleStepIntoAsync",callback?: (err: Error | null) => void,): void
This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
Parameters Jump to heading
Jump to headingmethod: "Debugger.scheduleStepIntoAsync"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.resume",callback?: (err: Error | null) => void,): void
Resumes JavaScript execution.
Parameters Jump to heading
Jump to headingmethod: "Debugger.resume"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getStackTrace",params?: Debugger.GetStackTraceParameterType,callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): void
Returns stack trace with given stackTraceId
.
Parameters Jump to heading
Jump to headingmethod: "Debugger.getStackTrace"
Jump to headingparams: Debugger.GetStackTraceParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getStackTrace",callback?: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.getStackTrace"
Jump to headingcallback: (err: Error | null,params: Debugger.GetStackTraceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.searchInContent",params?: Debugger.SearchInContentParameterType,callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): void
Searches for given string in script content.
Parameters Jump to heading
Jump to headingmethod: "Debugger.searchInContent"
Jump to headingparams: Debugger.SearchInContentParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.searchInContent",callback?: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.searchInContent"
Jump to headingcallback: (err: Error | null,params: Debugger.SearchInContentReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setScriptSource",params?: Debugger.SetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): void
Edits JavaScript source live.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setScriptSource"
Jump to headingparams: Debugger.SetScriptSourceParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setScriptSource",callback?: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setScriptSource"
Jump to headingcallback: (err: Error | null,params: Debugger.SetScriptSourceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.restartFrame",params?: Debugger.RestartFrameParameterType,callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): void
Restarts particular call frame from the beginning.
Parameters Jump to heading
Jump to headingmethod: "Debugger.restartFrame"
Jump to headingparams: Debugger.RestartFrameParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.restartFrame",callback?: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.restartFrame"
Jump to headingcallback: (err: Error | null,params: Debugger.RestartFrameReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getScriptSource",params?: Debugger.GetScriptSourceParameterType,callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): void
Returns source for the script with given id.
Parameters Jump to heading
Jump to headingmethod: "Debugger.getScriptSource"
Jump to headingparams: Debugger.GetScriptSourceParameterType
Jump to headingcallback: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.getScriptSource",callback?: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.getScriptSource"
Jump to headingcallback: (err: Error | null,params: Debugger.GetScriptSourceReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setPauseOnExceptions",callback?: (err: Error | null) => void,): void
Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none
.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setPauseOnExceptions"
Jump to headingparams: Debugger.SetPauseOnExceptionsParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setPauseOnExceptions",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setPauseOnExceptions"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.evaluateOnCallFrame",callback?: (err: Error | null,) => void,): void
Evaluates expression on a given call frame.
Parameters Jump to heading
Jump to headingmethod: "Debugger.evaluateOnCallFrame"
Jump to headingparams: Debugger.EvaluateOnCallFrameParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.evaluateOnCallFrame",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.evaluateOnCallFrame"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setVariableValue",params?: Debugger.SetVariableValueParameterType,callback?: (err: Error | null) => void,): void
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setVariableValue"
Jump to headingparams: Debugger.SetVariableValueParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setVariableValue",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setVariableValue"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setReturnValue",params?: Debugger.SetReturnValueParameterType,callback?: (err: Error | null) => void,): void
Changes return value in top frame. Available only at return break position.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setReturnValue"
Jump to headingparams: Debugger.SetReturnValueParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setReturnValue",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setReturnValue"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setAsyncCallStackDepth",callback?: (err: Error | null) => void,): void
Enables or disables async call stacks tracking.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setAsyncCallStackDepth"
Jump to headingparams: Debugger.SetAsyncCallStackDepthParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setAsyncCallStackDepth",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setAsyncCallStackDepth"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBlackboxPatterns",callback?: (err: Error | null) => void,): void
Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBlackboxPatterns"
Jump to headingparams: Debugger.SetBlackboxPatternsParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBlackboxPatterns",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBlackboxPatterns"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBlackboxedRanges",callback?: (err: Error | null) => void,): void
Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBlackboxedRanges"
Jump to headingparams: Debugger.SetBlackboxedRangesParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Debugger.setBlackboxedRanges",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Debugger.setBlackboxedRanges"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Console.enable",callback?: (err: Error | null) => void,): void
Enables console domain, sends the messages collected so far to the client by means of the messageAdded
notification.
Parameters Jump to heading
Jump to headingmethod: "Console.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Console.disable",callback?: (err: Error | null) => void,): void
Disables console domain, prevents further console messages from being reported to the client.
Parameters Jump to heading
Jump to headingmethod: "Console.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Console.clearMessages",callback?: (err: Error | null) => void,): void
Does nothing.
Parameters Jump to heading
Jump to headingmethod: "Console.clearMessages"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.enable",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.disable",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.setSamplingInterval",callback?: (err: Error | null) => void,): void
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
Parameters Jump to heading
Jump to headingmethod: "Profiler.setSamplingInterval"
Jump to headingparams: Profiler.SetSamplingIntervalParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.setSamplingInterval",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.setSamplingInterval"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.start",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.start"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.stop",callback?: (err: Error | null,params: Profiler.StopReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.stop"
Jump to headingcallback: (err: Error | null,params: Profiler.StopReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.startPreciseCoverage",callback?: (err: Error | null) => void,): void
Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
Parameters Jump to heading
Jump to headingmethod: "Profiler.startPreciseCoverage"
Jump to headingparams: Profiler.StartPreciseCoverageParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.startPreciseCoverage",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "Profiler.startPreciseCoverage"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.stopPreciseCoverage",callback?: (err: Error | null) => void,): void
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
Parameters Jump to heading
Jump to headingmethod: "Profiler.stopPreciseCoverage"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.takePreciseCoverage",callback?: (err: Error | null,) => void,): void
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
Parameters Jump to heading
Jump to headingmethod: "Profiler.takePreciseCoverage"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Profiler.getBestEffortCoverage",callback?: (err: Error | null,) => void,): void
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
Parameters Jump to heading
Jump to headingmethod: "Profiler.getBestEffortCoverage"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.enable",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.disable",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.startTrackingHeapObjects",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.startTrackingHeapObjects"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.startTrackingHeapObjects",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.startTrackingHeapObjects"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.stopTrackingHeapObjects",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.stopTrackingHeapObjects"
Jump to headingparams: HeapProfiler.StopTrackingHeapObjectsParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.stopTrackingHeapObjects",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.stopTrackingHeapObjects"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.takeHeapSnapshot",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.takeHeapSnapshot"
Jump to headingparams: HeapProfiler.TakeHeapSnapshotParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.takeHeapSnapshot",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.takeHeapSnapshot"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.collectGarbage",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.collectGarbage"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.getObjectByHeapObjectId",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.getObjectByHeapObjectId"
Jump to headingparams: HeapProfiler.GetObjectByHeapObjectIdParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.getObjectByHeapObjectId",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.getObjectByHeapObjectId"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.addInspectedHeapObject",callback?: (err: Error | null) => void,): void
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.addInspectedHeapObject"
Jump to headingparams: HeapProfiler.AddInspectedHeapObjectParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.addInspectedHeapObject",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.addInspectedHeapObject"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.getHeapObjectId",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.getHeapObjectId"
Jump to headingparams: HeapProfiler.GetHeapObjectIdParameterType
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.getHeapObjectId",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.getHeapObjectId"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.startSampling",params?: HeapProfiler.StartSamplingParameterType,callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.startSampling"
Jump to headingparams: HeapProfiler.StartSamplingParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.startSampling",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.startSampling"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.stopSampling",callback?: (err: Error | null,params: HeapProfiler.StopSamplingReturnType,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.stopSampling"
Jump to headingcallback: (err: Error | null,params: HeapProfiler.StopSamplingReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "HeapProfiler.getSamplingProfile",callback?: (err: Error | null,) => void,): void
Parameters Jump to heading
Jump to headingmethod: "HeapProfiler.getSamplingProfile"
Jump to headingcallback: (err: Error | null,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeTracing.getCategories",callback?: (err: Error | null,params: NodeTracing.GetCategoriesReturnType,) => void,): void
Gets supported tracing categories.
Parameters Jump to heading
Jump to headingmethod: "NodeTracing.getCategories"
Jump to headingcallback: (err: Error | null,params: NodeTracing.GetCategoriesReturnType,) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeTracing.start",params?: NodeTracing.StartParameterType,callback?: (err: Error | null) => void,): void
Start trace events collection.
Parameters Jump to heading
Jump to headingmethod: "NodeTracing.start"
Jump to headingparams: NodeTracing.StartParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeTracing.start",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "NodeTracing.start"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeTracing.stop",callback?: (err: Error | null) => void,): void
Stop trace events collection. Remaining collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.
Parameters Jump to heading
Jump to headingmethod: "NodeTracing.stop"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.sendMessageToWorker",callback?: (err: Error | null) => void,): void
Sends protocol message over session with given id.
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.sendMessageToWorker"
Jump to headingparams: NodeWorker.SendMessageToWorkerParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.sendMessageToWorker",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.sendMessageToWorker"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.enable",params?: NodeWorker.EnableParameterType,callback?: (err: Error | null) => void,): void
Instructs the inspector to attach to running workers. Will also attach to new workers as they start
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.enable"
Jump to headingparams: NodeWorker.EnableParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.enable",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.disable",callback?: (err: Error | null) => void,): void
Detaches from all running workers and disables attaching to new workers as they are started.
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.detach",params?: NodeWorker.DetachParameterType,callback?: (err: Error | null) => void,): void
Detached from the worker with given sessionId.
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.detach"
Jump to headingparams: NodeWorker.DetachParameterType
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeWorker.detach",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "NodeWorker.detach"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Network.disable",callback?: (err: Error | null) => void,): void
Disables network tracking, prevents network events from being sent to the client.
Parameters Jump to heading
Jump to headingmethod: "Network.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "Network.enable",callback?: (err: Error | null) => void,): void
Enables network tracking, network events will now be delivered to the client.
Parameters Jump to heading
Jump to headingmethod: "Network.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeRuntime.enable",callback?: (err: Error | null) => void,): void
Enable the NodeRuntime events except by NodeRuntime.waitingForDisconnect
.
Parameters Jump to heading
Jump to headingmethod: "NodeRuntime.enable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeRuntime.disable",callback?: (err: Error | null) => void,): void
Disable NodeRuntime events
Parameters Jump to heading
Jump to headingmethod: "NodeRuntime.disable"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeRuntime.notifyWhenWaitingForDisconnect",callback?: (err: Error | null) => void,): void
Enable the NodeRuntime.waitingForDisconnect
.
Parameters Jump to heading
Jump to headingmethod: "NodeRuntime.notifyWhenWaitingForDisconnect"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void
Jump to headingSession.prototype.post(method: "NodeRuntime.notifyWhenWaitingForDisconnect",callback?: (err: Error | null) => void,): void
Parameters Jump to heading
Jump to headingmethod: "NodeRuntime.notifyWhenWaitingForDisconnect"
Jump to headingcallback: (err: Error | null) => void
Return Type Jump to heading
void