What problem does it solve?
Debug logging is essential for diagnosing issues across server, client, and desktop contexts. This Skill provides a structured guide to implement and use the debug library to observe runtime behavior without invasive changes.
Core Features & Use Cases
- Standardized namespaces for server, client, and Electron logs.
- Practical usage patterns for basic logging, message formatting, and conditional output.
- Use Case: Quickly verify a feature by emitting scoped debug messages during development and troubleshooting.
Quick Start
Install the debug library in your project.
Create a logger with a chosen namespace (for example, a module-specific one) and emit sample messages to verify output.
Enable or disable debug output by configuring the environment or localStorage settings depending on your platform.
Run your application and observe the formatted log messages in your console.