debug() — mcp Function Reference
Architecture documentation for the debug() function in logger.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 33bb86df_1268_373b_a74a_77412144612c["debug()"] c78d0ed7_0af5_dfcf_6bfb_aff1a1d68fb1["logger.ts"] 33bb86df_1268_373b_a74a_77412144612c -->|defined in| c78d0ed7_0af5_dfcf_6bfb_aff1a1d68fb1 8e2a6102_97e1_76b1_c08e_d7b87f095026["loadCacheFromDisk()"] 8e2a6102_97e1_76b1_c08e_d7b87f095026 -->|calls| 33bb86df_1268_373b_a74a_77412144612c 5f051fd3_b5fd_05fe_3e0b_f20364a0b064["precacheForDirectory()"] 5f051fd3_b5fd_05fe_3e0b_f20364a0b064 -->|calls| 33bb86df_1268_373b_a74a_77412144612c 9b0f2e33_56dd_6b97_6fd4_a4a2c45675d5["main()"] 9b0f2e33_56dd_6b97_6fd4_a4a2c45675d5 -->|calls| 33bb86df_1268_373b_a74a_77412144612c 65787d30_1025_d531_cde5_ded3572607bd["constructor()"] 65787d30_1025_d531_cde5_ded3572607bd -->|calls| 33bb86df_1268_373b_a74a_77412144612c 9d72a623_8b26_a485_5797_5f53c18e4294["start()"] 9d72a623_8b26_a485_5797_5f53c18e4294 -->|calls| 33bb86df_1268_373b_a74a_77412144612c bbbd3356_722d_4bf8_09d2_706412487d25["zipRepository()"] bbbd3356_722d_4bf8_09d2_706412487d25 -->|calls| 33bb86df_1268_373b_a74a_77412144612c 44ecfbe1_2321_f70c_1614_c983eebf0cf5["buildIgnoreFilter()"] 44ecfbe1_2321_f70c_1614_c983eebf0cf5 -->|calls| 33bb86df_1268_373b_a74a_77412144612c bb858fdb_9a3b_a551_d94a_ce5beeb5b86f["addFilesRecursively()"] bb858fdb_9a3b_a551_d94a_ce5beeb5b86f -->|calls| 33bb86df_1268_373b_a74a_77412144612c 4ac071e8_cf9e_8aff_e8f4_ae8e57382223["cleanupOldZips()"] 4ac071e8_cf9e_8aff_e8f4_ae8e57382223 -->|calls| 33bb86df_1268_373b_a74a_77412144612c 5c90e8cd_7cb8_59e4_cdeb_8ef1addd217e["error()"] 33bb86df_1268_373b_a74a_77412144612c -->|calls| 5c90e8cd_7cb8_59e4_cdeb_8ef1addd217e style 33bb86df_1268_373b_a74a_77412144612c 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does debug() do?
debug() is a function in the mcp codebase, defined in src/utils/logger.ts.
Where is debug() defined?
debug() is defined in src/utils/logger.ts at line 15.
What does debug() call?
debug() calls 1 function(s): error.
What calls debug()?
debug() is called by 9 function(s): addFilesRecursively, buildIgnoreFilter, cleanupOldZips, constructor, loadCacheFromDisk, main, precacheForDirectory, start, and 1 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free