post

fun post(method: String, callback: (<Error class: unknown class>?, params: Any?) -> Unit = definedExternally)(source)

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.


fun post(    method: String,     params: Any = definedExternally,     callback: (<Error class: unknown class>?, params: Any?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_EVALUATE,     callback: (<Error class: unknown class>?, params: EvaluateReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_AWAITPROMISE,     callback: (<Error class: unknown class>?, params: AwaitPromiseReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_CALLFUNCTIONON,     callback: (<Error class: unknown class>?, params: CallFunctionOnReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_GETPROPERTIES,     callback: (<Error class: unknown class>?, params: GetPropertiesReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.RUNTIME_RELEASEOBJECT, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.RUNTIME_RELEASEOBJECTGROUP, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_SETCUSTOMOBJECTFORMATTERENABLED,     params: SetCustomObjectFormatterEnabledParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_SETCUSTOMOBJECTFORMATTERENABLED,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_COMPILESCRIPT,     callback: (<Error class: unknown class>?, params: CompileScriptReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_RUNSCRIPT,     callback: (<Error class: unknown class>?, params: RunScriptReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_QUERYOBJECTS,     params: QueryObjectsParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: QueryObjectsReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.RUNTIME_QUERYOBJECTS,     callback: (<Error class: unknown class>?, params: QueryObjectsReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.RUNTIME_GLOBALLEXICALSCOPENAMES, callback: (<Error class: unknown class>?, params: GlobalLexicalScopeNamesReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINTSACTIVE,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_SETSKIPALLPAUSES, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINTBYURL,     callback: (<Error class: unknown class>?, params: SetBreakpointByUrlReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINT,     callback: (<Error class: unknown class>?, params: SetBreakpointReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_REMOVEBREAKPOINT, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_GETPOSSIBLEBREAKPOINTS, callback: (<Error class: unknown class>?, params: GetPossibleBreakpointsReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_CONTINUETOLOCATION, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_PAUSEONASYNCCALL,     params: PauseOnAsyncCallParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_PAUSEONASYNCCALL, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_STEPINTO, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_GETSTACKTRACE,     callback: (<Error class: unknown class>?, params: GetStackTraceReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SEARCHINCONTENT,     callback: (<Error class: unknown class>?, params: SearchInContentReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETSCRIPTSOURCE,     callback: (<Error class: unknown class>?, params: SetScriptSourceReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_RESTARTFRAME,     callback: (<Error class: unknown class>?, params: RestartFrameReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_GETSCRIPTSOURCE,     callback: (<Error class: unknown class>?, params: GetScriptSourceReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETPAUSEONEXCEPTIONS,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_EVALUATEONCALLFRAME,     callback: (<Error class: unknown class>?, params: EvaluateOnCallFrameReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_SETVARIABLEVALUE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_SETRETURNVALUE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETASYNCCALLSTACKDEPTH,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.DEBUGGER_SETBLACKBOXPATTERNS, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.DEBUGGER_SETBLACKBOXEDRANGES,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.PROFILER_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.PROFILER_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.PROFILER_SETSAMPLINGINTERVAL, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.PROFILER_START, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.PROFILER_STOP,     callback: (<Error class: unknown class>?, params: StopReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.PROFILER_STARTPRECISECOVERAGE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.HEAPPROFILER_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.HEAPPROFILER_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STARTTRACKINGHEAPOBJECTS,     params: StartTrackingHeapObjectsParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STARTTRACKINGHEAPOBJECTS,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STOPTRACKINGHEAPOBJECTS,     params: StopTrackingHeapObjectsParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STOPTRACKINGHEAPOBJECTS,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_TAKEHEAPSNAPSHOT,     params: TakeHeapSnapshotParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_TAKEHEAPSNAPSHOT,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.HEAPPROFILER_COLLECTGARBAGE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_GETOBJECTBYHEAPOBJECTID,     params: GetObjectByHeapObjectIdParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetObjectByHeapObjectIdReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.HEAPPROFILER_GETOBJECTBYHEAPOBJECTID, callback: (<Error class: unknown class>?, params: GetObjectByHeapObjectIdReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_ADDINSPECTEDHEAPOBJECT,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_GETHEAPOBJECTID,     params: GetHeapObjectIdParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetHeapObjectIdReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_GETHEAPOBJECTID,     callback: (<Error class: unknown class>?, params: GetHeapObjectIdReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STARTSAMPLING,     params: StartSamplingParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.HEAPPROFILER_STARTSAMPLING, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_STOPSAMPLING,     callback: (<Error class: unknown class>?, params: StopSamplingReturnType) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.HEAPPROFILER_GETSAMPLINGPROFILE,     callback: (<Error class: unknown class>?, params: GetSamplingProfileReturnType) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.NODETRACING_START, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.NODEWORKER_SENDMESSAGETOWORKER,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.NODEWORKER_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(method: SessionMethod.NODEWORKER_DETACH, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)
fun post(    method: SessionMethod.NODERUNTIME_NOTIFYWHENWAITINGFORDISCONNECT,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)


fun post(    method: SessionMethod.SCHEMA_GETDOMAINS,     callback: (<Error class: unknown class>?, params: GetDomainsReturnType) -> Unit = definedExternally)(source)

Returns supported domains.


fun post(    method: SessionMethod.RUNTIME_EVALUATE,     params: EvaluateParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: EvaluateReturnType) -> Unit = definedExternally)(source)

Evaluates expression on global object.


fun post(    method: SessionMethod.RUNTIME_AWAITPROMISE,     params: AwaitPromiseParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: AwaitPromiseReturnType) -> Unit = definedExternally)(source)

Add handler to promise with given promise object id.


fun post(    method: SessionMethod.RUNTIME_CALLFUNCTIONON,     params: CallFunctionOnParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: CallFunctionOnReturnType) -> Unit = definedExternally)(source)

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.


fun post(    method: SessionMethod.RUNTIME_GETPROPERTIES,     params: GetPropertiesParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetPropertiesReturnType) -> Unit = definedExternally)(source)

Returns properties of a given object. Object group of the result is inherited from the target object.


fun post(    method: SessionMethod.RUNTIME_RELEASEOBJECT,     params: ReleaseObjectParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Releases remote object with given id.


fun post(    method: SessionMethod.RUNTIME_RELEASEOBJECTGROUP,     params: ReleaseObjectGroupParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Releases all remote objects that belong to a given group.


fun post(    method: SessionMethod.RUNTIME_RUNIFWAITINGFORDEBUGGER,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Tells inspected instance to run if it was waiting for debugger to attach.


fun post(method: SessionMethod.RUNTIME_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(method: SessionMethod.RUNTIME_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disables reporting of execution contexts creation.


fun post(    method: SessionMethod.RUNTIME_DISCARDCONSOLEENTRIES,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Discards collected exceptions and console API calls.


fun post(    method: SessionMethod.RUNTIME_COMPILESCRIPT,     params: CompileScriptParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: CompileScriptReturnType) -> Unit = definedExternally)(source)

Compiles expression.


fun post(    method: SessionMethod.RUNTIME_RUNSCRIPT,     params: RunScriptParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: RunScriptReturnType) -> Unit = definedExternally)(source)

Runs script with given id in a given context.


fun post(    method: SessionMethod.RUNTIME_GLOBALLEXICALSCOPENAMES,     params: GlobalLexicalScopeNamesParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GlobalLexicalScopeNamesReturnType) -> Unit = definedExternally)(source)

Returns all let, const and class variables from global scope.


fun post(    method: SessionMethod.DEBUGGER_ENABLE,     callback: (<Error class: unknown class>?, params: EnableReturnType) -> Unit = definedExternally)(source)

Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.


fun post(method: SessionMethod.DEBUGGER_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disables debugger for given page.


fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINTSACTIVE,     params: SetBreakpointsActiveParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Activates / deactivates all breakpoints on the page.


fun post(    method: SessionMethod.DEBUGGER_SETSKIPALLPAUSES,     params: SetSkipAllPausesParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).


fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINTBYURL,     params: SetBreakpointByUrlParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: SetBreakpointByUrlReturnType) -> Unit = definedExternally)(source)

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.


fun post(    method: SessionMethod.DEBUGGER_SETBREAKPOINT,     params: SetBreakpointParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: SetBreakpointReturnType) -> Unit = definedExternally)(source)

Sets JavaScript breakpoint at a given location.


fun post(    method: SessionMethod.DEBUGGER_REMOVEBREAKPOINT,     params: RemoveBreakpointParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Removes JavaScript breakpoint.


fun post(    method: SessionMethod.DEBUGGER_GETPOSSIBLEBREAKPOINTS,     params: GetPossibleBreakpointsParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetPossibleBreakpointsReturnType) -> Unit = definedExternally)(source)

Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.


fun post(    method: SessionMethod.DEBUGGER_CONTINUETOLOCATION,     params: ContinueToLocationParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Continues execution until specific location is reached.


fun post(method: SessionMethod.DEBUGGER_STEPOVER, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Steps over the statement.


fun post(    method: SessionMethod.DEBUGGER_STEPINTO,     params: StepIntoParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Steps into the function call.


fun post(method: SessionMethod.DEBUGGER_STEPOUT, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Steps out of the function call.


fun post(method: SessionMethod.DEBUGGER_PAUSE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Stops on the next JavaScript statement.


fun post(    method: SessionMethod.DEBUGGER_SCHEDULESTEPINTOASYNC,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(method: SessionMethod.DEBUGGER_RESUME, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Resumes JavaScript execution.


fun post(    method: SessionMethod.DEBUGGER_GETSTACKTRACE,     params: GetStackTraceParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetStackTraceReturnType) -> Unit = definedExternally)(source)

Returns stack trace with given stackTraceId.


fun post(    method: SessionMethod.DEBUGGER_SEARCHINCONTENT,     params: SearchInContentParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: SearchInContentReturnType) -> Unit = definedExternally)(source)

Searches for given string in script content.


fun post(    method: SessionMethod.DEBUGGER_SETSCRIPTSOURCE,     params: SetScriptSourceParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: SetScriptSourceReturnType) -> Unit = definedExternally)(source)

Edits JavaScript source live.


fun post(    method: SessionMethod.DEBUGGER_RESTARTFRAME,     params: RestartFrameParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: RestartFrameReturnType) -> Unit = definedExternally)(source)

Restarts particular call frame from the beginning.


fun post(    method: SessionMethod.DEBUGGER_GETSCRIPTSOURCE,     params: GetScriptSourceParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: GetScriptSourceReturnType) -> Unit = definedExternally)(source)

Returns source for the script with given id.


fun post(    method: SessionMethod.DEBUGGER_SETPAUSEONEXCEPTIONS,     params: SetPauseOnExceptionsParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(    method: SessionMethod.DEBUGGER_EVALUATEONCALLFRAME,     params: EvaluateOnCallFrameParameterType = definedExternally,     callback: (<Error class: unknown class>?, params: EvaluateOnCallFrameReturnType) -> Unit = definedExternally)(source)

Evaluates expression on a given call frame.


fun post(    method: SessionMethod.DEBUGGER_SETVARIABLEVALUE,     params: SetVariableValueParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.


fun post(    method: SessionMethod.DEBUGGER_SETRETURNVALUE,     params: SetReturnValueParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Changes return value in top frame. Available only at return break position.


fun post(    method: SessionMethod.DEBUGGER_SETASYNCCALLSTACKDEPTH,     params: SetAsyncCallStackDepthParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enables or disables async call stacks tracking.


fun post(    method: SessionMethod.DEBUGGER_SETBLACKBOXPATTERNS,     params: SetBlackboxPatternsParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(    method: SessionMethod.DEBUGGER_SETBLACKBOXEDRANGES,     params: SetBlackboxedRangesParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(method: SessionMethod.CONSOLE_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.


fun post(method: SessionMethod.CONSOLE_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disables console domain, prevents further console messages from being reported to the client.


fun post(method: SessionMethod.CONSOLE_CLEARMESSAGES, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Does nothing.


fun post(    method: SessionMethod.PROFILER_SETSAMPLINGINTERVAL,     params: SetSamplingIntervalParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.


fun post(    method: SessionMethod.PROFILER_STARTPRECISECOVERAGE,     params: StartPreciseCoverageParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

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.


fun post(method: SessionMethod.PROFILER_STOPPRECISECOVERAGE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.


fun post(    method: SessionMethod.PROFILER_TAKEPRECISECOVERAGE,     callback: (<Error class: unknown class>?, params: TakePreciseCoverageReturnType) -> Unit = definedExternally)(source)

Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.


fun post(method: SessionMethod.PROFILER_GETBESTEFFORTCOVERAGE, callback: (<Error class: unknown class>?, params: GetBestEffortCoverageReturnType) -> Unit = definedExternally)(source)

Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.


fun post(    method: SessionMethod.HEAPPROFILER_ADDINSPECTEDHEAPOBJECT,     params: AddInspectedHeapObjectParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enables console to refer to the node with given id via

$x (see Command Line API for more details $

x functions).


fun post(    method: SessionMethod.NODETRACING_GETCATEGORIES,     callback: (<Error class: unknown class>?, params: GetCategoriesReturnType) -> Unit = definedExternally)(source)

Gets supported tracing categories.


fun post(    method: SessionMethod.NODETRACING_START,     params: StartParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Start trace events collection.


fun post(method: SessionMethod.NODETRACING_STOP, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Stop trace events collection. Remaining collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.


fun post(    method: SessionMethod.NODEWORKER_SENDMESSAGETOWORKER,     params: SendMessageToWorkerParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Sends protocol message over session with given id.


fun post(    method: SessionMethod.NODEWORKER_ENABLE,     params: EnableParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Instructs the inspector to attach to running workers. Will also attach to new workers as they start


fun post(method: SessionMethod.NODEWORKER_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Detaches from all running workers and disables attaching to new workers as they are started.


fun post(    method: SessionMethod.NODEWORKER_DETACH,     params: DetachParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Detached from the worker with given sessionId.


fun post(method: SessionMethod.NETWORK_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disables network tracking, prevents network events from being sent to the client.


fun post(method: SessionMethod.NETWORK_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enables network tracking, network events will now be delivered to the client.


fun post(method: SessionMethod.NODERUNTIME_ENABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enable the NodeRuntime events except by NodeRuntime.waitingForDisconnect.


fun post(method: SessionMethod.NODERUNTIME_DISABLE, callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Disable NodeRuntime events


fun post(    method: SessionMethod.NODERUNTIME_NOTIFYWHENWAITINGFORDISCONNECT,     params: NotifyWhenWaitingForDisconnectParameterType = definedExternally,     callback: (<Error class: unknown class>?) -> Unit = definedExternally)(source)

Enable the NodeRuntime.waitingForDisconnect.