Debug
JS API debug lets you information about remote debug mode.
All methods
Method | Description | Supported since |
---|---|---|
isRemoteDebugEnabled() | Returns information about remote debug settings | 5.8 |
onRemoteDebugChanged() | Accept function which is called after remote debug settings is changed | 5.8 |
isRemoteDebugEnabled()
Method isRemoteDebugEnabled()
returns the state of the Device debug (true or false).
await sos.debug.isRemoteDebugEnabled();
onRemoteDebugChanged()
Method onRemoteDebugChanged()
accepts a function that is executed as a callback.
await sos.debug.onRemoteDebugChanged((enabled) => { console.log("Weinre debug is", { enabled: true })});