add spec
This commit is contained in:
parent
df5bad3f89
commit
3a60ab386c
4 changed files with 168 additions and 11 deletions
|
@ -861,10 +861,14 @@ win.webContents.debugger.sendCommand("Network.enable");
|
|||
|
||||
#### `webContents.debugger.attach([protocolVersion])`
|
||||
|
||||
* `protocolVersion` String - Requested debugging protocol version.
|
||||
* `protocolVersion` String (optional) - Requested debugging protocol version.
|
||||
|
||||
Attaches the debugger to the `webContents`.
|
||||
|
||||
#### `webContents.debugger.isAttached()`
|
||||
|
||||
Returns a boolean indicating whether a debugger is attached to the `webContents`.
|
||||
|
||||
#### `webContents.debugger.detach()`
|
||||
|
||||
Detaches the debugger from the `webContents`.
|
||||
|
@ -873,8 +877,9 @@ Detaches the debugger from the `webContents`.
|
|||
|
||||
* `method` String - Method name, should be one of the methods defined by the
|
||||
remote debugging protocol.
|
||||
* `commandParams` Object - JSON object with request parameters.
|
||||
* `callback` Function - Response
|
||||
* `commandParams` Object (optional) - JSON object with request parameters.
|
||||
* `callback` Function (optional) - Response
|
||||
* `error` Object - Error message indicating the failure of the command.
|
||||
* `result` Object - Response defined by the 'returns' attribute of
|
||||
the command description in the remote debugging protocol.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue