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, automatically detaches from all currently attached targets.

{
  "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, automatically detaches from all currently attached targets.",
  "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."
    }
  ]
}