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

Function ComputeDebugMode

Telegram/SourceFiles/core/launcher.cpp:116–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void ComputeDebugMode() {
117 Logs::SetDebugEnabled(cAlphaVersion() != 0);
118 const auto debugModeSettingPath = DebugModeSettingPath();
119 auto file = QFile(debugModeSettingPath);
120 if (file.exists() && file.open(QIODevice::ReadOnly)) {
121 Logs::SetDebugEnabled(file.read(1) != "0");
122#if defined _DEBUG && !defined Q_OS_MAC
123 } else {
124 Logs::SetDebugEnabled(true);
125#endif
126 }
127 if (cDebugMode()) {
128 Logs::SetDebugEnabled(true);
129 }
130 if (Logs::DebugEnabled()) {
131 QLoggingCategory::setFilterRules("qt.qpa.gl.debug=true");
132 }
133}
134
135void ComputeExternalUpdater() {
136 auto locations = QStandardPaths::standardLocations(

Callers 1

workingFolderReadyMethod · 0.85

Calls 5

SetDebugEnabledFunction · 0.85
DebugModeSettingPathFunction · 0.85
DebugEnabledFunction · 0.85
openMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected