MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetDebugString

Function GetDebugString

src/debug.cpp:201–209  ·  view source on GitHub ↗

* Print out the current debug-level. * Just return a string with the values of all the debug categories. * @return string with debug-levels */

Source from the content-addressed store, hash-verified

199 * @return string with debug-levels
200 */
201std::string GetDebugString()
202{
203 std::string result;
204 for (const auto &debug_level : _debug_levels) {
205 if (!result.empty()) result += ", ";
206 format_append(result, "{}={}", debug_level.name, *debug_level.level);
207 }
208 return result;
209}
210
211/**
212 * Get the prefix for logs.

Callers 1

ConDebugLevelFunction · 0.85

Calls 2

format_appendFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected