MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / switchDebugMode

Method switchDebugMode

Telegram/SourceFiles/core/application.cpp:1038–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038void Application::switchDebugMode() {
1039 if (Logs::DebugEnabled()) {
1040 Logs::SetDebugEnabled(false);
1041 Launcher::Instance().writeDebugModeSetting();
1042 Restart();
1043 } else {
1044 Logs::SetDebugEnabled(true);
1045 Launcher::Instance().writeDebugModeSetting();
1046 DEBUG_LOG(("Debug logs started."));
1047 if (_lastActivePrimaryWindow) {
1048 _lastActivePrimaryWindow->hideLayer();
1049 }
1050 }
1051}
1052
1053Main::Account &Application::activeAccount() const {
1054 return _domain->active();

Callers 1

GenerateCodesFunction · 0.80

Calls 6

DebugEnabledFunction · 0.85
SetDebugEnabledFunction · 0.85
writeDebugModeSettingMethod · 0.80
InstanceClass · 0.70
RestartFunction · 0.70
hideLayerMethod · 0.45

Tested by

no test coverage detected