Skip to main content
Version: 6.4.2

Debug

JS API debug lets you information about remote debug mode.

All methods

MethodDescriptionSupported since
isRemoteDebugEnabled()Returns information about remote debug settings5.8
onRemoteDebugChanged()Accept function which is called after remote debug settings is changed5.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 })});