Home / Function/ debug() — mcp Function Reference

debug() — mcp Function Reference

Architecture documentation for the debug() function in logger.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  b8971bfc_ba3c_23a9_1f17_5d613ac67105["debug()"]
  f528cae6_71d3_4b84_026d_d4778648e9c8["loadCacheFromDisk()"]
  f528cae6_71d3_4b84_026d_d4778648e9c8 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  966fdd0a_509a_01b0_865e_32cfde84f964["precacheForDirectory()"]
  966fdd0a_509a_01b0_865e_32cfde84f964 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  8e8fa8c5_d14a_6dee_35c8_6e4db4d58b20["main()"]
  8e8fa8c5_d14a_6dee_35c8_6e4db4d58b20 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  fb3524f1_6068_fb0f_15f3_83e2b15a3f3f["constructor()"]
  fb3524f1_6068_fb0f_15f3_83e2b15a3f3f -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  6cc13fa0_0ce9_926f_417f_6b3f50082f67["injectOverviewInstructions()"]
  6cc13fa0_0ce9_926f_417f_6b3f50082f67 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  08ca54b2_22bc_134f_e028_7c18da8dca8a["start()"]
  08ca54b2_22bc_134f_e028_7c18da8dca8a -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  52a097f2_598d_df67_e422_55b20a202d95["zipRepository()"]
  52a097f2_598d_df67_e422_55b20a202d95 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  44adfa8b_2ebc_f147_11ab_97c37a623907["buildIgnoreFilter()"]
  44adfa8b_2ebc_f147_11ab_97c37a623907 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  3a4a51ae_b292_2750_c894_60a641d584b1["addFilesRecursively()"]
  3a4a51ae_b292_2750_c894_60a641d584b1 -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  8b9027cb_22ba_2e2c_2393_3368aa90048f["cleanupOldZips()"]
  8b9027cb_22ba_2e2c_2393_3368aa90048f -->|calls| b8971bfc_ba3c_23a9_1f17_5d613ac67105
  7676d97e_3407_e9fb_36e4_f3398b574ec2["error()"]
  b8971bfc_ba3c_23a9_1f17_5d613ac67105 -->|calls| 7676d97e_3407_e9fb_36e4_f3398b574ec2
  style b8971bfc_ba3c_23a9_1f17_5d613ac67105 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);
  }
}

Subdomains

Calls

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