MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / switch_debug_logging

Function switch_debug_logging

src/plugin/Plugin.cpp:233–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void switch_debug_logging() {
234 auto mut = settings->modify(SettingsModificationStyle::ignore_file_errors);
235 mut->data.write_debug_log = !mut->data.write_debug_log;
236 if (mut->data.write_debug_log) {
237 WinApi::delete_file(get_debug_log_path().c_str());
238 }
239}
240
241void open_debug_log() {
242 ShellExecute(nullptr, L"open", get_debug_log_path().c_str(), nullptr, nullptr, SW_SHOW);

Callers

nothing calls this directly

Calls 4

delete_fileFunction · 0.85
get_debug_log_pathFunction · 0.85
c_strMethod · 0.80
modifyMethod · 0.45

Tested by

no test coverage detected