MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / enable

Function enable

packages/core/src/debug/debugController.ts:405–420  ·  view source on GitHub ↗
(config?: Partial<DebugConfig>)

Source from the content-addressed store, hash-verified

403 }
404
405 async function enable(config?: Partial<DebugConfig>): Promise<void> {
406 const fullConfig: DebugConfig = {
407 enabled: true,
408 ...(config?.ringCapacity !== undefined && { ringCapacity: config.ringCapacity }),
409 ...(config?.minSeverity !== undefined && { minSeverity: config.minSeverity }),
410 ...(config?.categoryMask !== undefined && { categoryMask: config.categoryMask }),
411 ...(config?.captureRawEvents !== undefined && { captureRawEvents: config.captureRawEvents }),
412 ...(config?.captureDrawlistBytes !== undefined && {
413 captureDrawlistBytes: config.captureDrawlistBytes,
414 }),
415 };
416
417 await backend.debugEnable(fullConfig);
418 isEnabled = true;
419 currentConfig = fullConfig;
420 }
421
422 async function disable(): Promise<void> {
423 await backend.debugDisable();

Callers

nothing calls this directly

Calls 1

debugEnableMethod · 0.80

Tested by

no test coverage detected