← Back to Runtime domain

Runtime.setAsyncCallStackDepth

Enables or disables async call stacks tracking.

Domain: Runtime stable

Parameters

NameTypeDescription
maxDepthintegerMaximum depth of async call stacks. Setting to `0` will effectively disable collecting async call stacks (default).

Example Request

{
  "id": 1,
  "method": "Runtime.setAsyncCallStackDepth",
  "params": {
    "maxDepth": 1
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Runtime.setAsyncCallStackDepth', {"maxDepth": 1});
console.log(result);