TargetClientSetAutoAttachAsync Method |
Version 88.2.90
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.
Namespace:
CefSharp.DevTools.Target
Assembly:
CefSharp (in CefSharp.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax public Task<DevToolsMethodResponse> SetAutoAttachAsync(
bool autoAttach,
bool waitForDebuggerOnStart,
Nullable<bool> flatten = null
)
public:
Task<DevToolsMethodResponse^>^ SetAutoAttachAsync(
bool autoAttach,
bool waitForDebuggerOnStart,
Nullable<bool> flatten = nullptr
)
Parameters
- autoAttach
- Type: SystemBoolean
Whether to auto-attach to related targets. - waitForDebuggerOnStart
- Type: SystemBoolean
Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. - flatten (Optional)
- Type: SystemNullableBoolean
Enables "flat" access to the session via specifying sessionId attribute in the commands.We plan to make this the default, deprecate non-flattened mode,and eventually retire it. See crbug.com/991325.
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also