check For Debugger

fun checkForDebugger(action: (Boolean) -> Unit)

method to check does the device running the app is connected to a debugger

Return

true if the devices is connected to a Debugger, false if it's not

Sources

Link copied to clipboard