(config?: Partial<DebugConfig>)
| 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(); |
nothing calls this directly
no test coverage detected