setDebugLogsEnabled

Enable local debug capture (on by default). Disabling also clears its history.