Skip to content

ElectronDebugger.sendCommand method

ElectronDebugger › sendCommand

Unofficial

Sends a given command to the debugging target.

Signature:

sendCommand(method: string, commandParams?: unknown, sessionId?: string | undefined): Promise<unknown>

Parameters:

Parameter Type Description
method string The command method name.
commandParams? unknown The parameters required by the command.
sessionId? string | undefined The session id for the command.

Returns: Promise<unknown>A promise resolving with the command response.