Target.setAutoAttach

Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, does not automatically detach.

{
  "name": "setAutoAttach",
  "description": "Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, does not automatically detach.",
  "parameters": [
    {
      "name": "autoAttach",
      "type": "boolean",
      "description": "Whether to auto-attach to related targets."
    },
    {
      "name": "waitForDebuggerOnStart",
      "type": "boolean",
      "description": "Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets."
    }
  ],
  "handlers": [
    "browser"
  ]
}