MCPcopy
hub / github.com/promptfoo/promptfoo / isDebugEnabled

Method isDebugEnabled

src/providers/mcp/client.ts:117–119  ·  view source on GitHub ↗

* Check if debug mode is enabled (config takes priority over env var)

()

Source from the content-addressed store, hash-verified

115 * Check if debug mode is enabled (config takes priority over env var)
116 */
117 private get isDebugEnabled(): boolean {
118 return this.config.debug ?? getEnvBool('MCP_DEBUG') ?? false;
119 }
120
121 /**
122 * Check if verbose mode is enabled (config takes priority over env var)

Callers 1

logger.test.tsFile · 0.80

Calls 1

getEnvBoolFunction · 0.90

Tested by

no test coverage detected