debug() — mcp Function Reference
Architecture documentation for the debug() function in logger.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 69fc7a46_28f6_6b72_2725_66c381e53322["debug()"] 4def3ca5_c0bf_fbae_1c00_3a7385fe0264["loadCacheFromDisk()"] 4def3ca5_c0bf_fbae_1c00_3a7385fe0264 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 9003922a_3c12_9d09_182b_1d8c2e1893be["precacheForDirectory()"] 9003922a_3c12_9d09_182b_1d8c2e1893be -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 6f266567_35d5_7334_0233_87d521cf347b["main()"] 6f266567_35d5_7334_0233_87d521cf347b -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 c038b2a8_9211_043e_36bd_8ccef7d18ab5["constructor()"] c038b2a8_9211_043e_36bd_8ccef7d18ab5 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 1f1e3342_1a9b_64a4_0615_96437ddf8cb2["injectOverviewInstructions()"] 1f1e3342_1a9b_64a4_0615_96437ddf8cb2 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 a9363f44_0cfc_87dc_a76a_4eeb9d75c684["start()"] a9363f44_0cfc_87dc_a76a_4eeb9d75c684 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 1fd46af5_c3e2_8998_1eb2_098430ff3629["zipRepository()"] 1fd46af5_c3e2_8998_1eb2_098430ff3629 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 d9b9a00b_7ed2_f6c8_1ca7_1e298c76a167["buildIgnoreFilter()"] d9b9a00b_7ed2_f6c8_1ca7_1e298c76a167 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 5c9096db_a74b_41f3_ba88_9738d6d799b5["addFilesRecursively()"] 5c9096db_a74b_41f3_ba88_9738d6d799b5 -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 f49e8b0d_0aa2_864b_8309_ab4164c3e67c["cleanupOldZips()"] f49e8b0d_0aa2_864b_8309_ab4164c3e67c -->|calls| 69fc7a46_28f6_6b72_2725_66c381e53322 9a818de6_4969_c29c_0dd7_dab4f6d4fbdb["error()"] 69fc7a46_28f6_6b72_2725_66c381e53322 -->|calls| 9a818de6_4969_c29c_0dd7_dab4f6d4fbdb style 69fc7a46_28f6_6b72_2725_66c381e53322 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/utils/logger.ts lines 15–19
export function debug(msg: string, ...args: any[]) {
if (DEBUG) {
console.error('[DEBUG]', msg, ...args);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does debug() do?
debug() is a function in the mcp codebase.
What does debug() call?
debug() calls 1 function(s): error.
What calls debug()?
debug() is called by 10 function(s): addFilesRecursively, buildIgnoreFilter, cleanupOldZips, constructor, injectOverviewInstructions, loadCacheFromDisk, main, precacheForDirectory, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free