debug

Emit namespaced debug logs across browser, Node.js, and Electron.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Nick777-Pixel/mychat7 --skill debug-nick777-pixel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/Nick777-Pixel/mychat7/tree/main/.agents/skills/debug
Command: npx skills add https://github.com/Nick777-Pixel/mychat7 --skill debug-nick777-pixel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging across complex codebases can be noisy and hard to isolate. This Skill provides a structured approach to using the debug library with namespaced loggers to improve traceability and troubleshooting.

Core Features & Use Cases

  • Namespace-based logging: Create and filter logs by namespaces like lobe-server:market to focus on relevant areas.
  • Cross-environment support: Works in browser, Node.js, and Electron contexts with configurable enablement.
  • Guided usage: Provides practical patterns for logging, formatting, and tracing execution flow in development and debugging sessions.

Quick Start

Install the debug package and create a namespaced logger (e.g., lobe-server:market) to emit and filter debug messages.

Frequently Asked Questions about debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use namespaced debug logging to isolate issues in a Node.js application?

Namespaced debug logging isolates issues by filtering output through the DEBUG environment variable, allowing you to target specific components like lobe-server:market and suppress irrelevant noise across your Node.js application.

Does namespaced debug logging work across browser, Node.js, and Electron environments?

Yes, namespaced debug logging works across browser, Node.js, and Electron environments by enabling output through browser localStorage, the Node.js DEBUG environment variable, or Electron process.env configurations.

What is the best way to structure debug logs for complex cross-environment codebases?

The best way to structure debug logs for complex codebases is using the debug library to create namespaced loggers, which improves traceability and allows you to filter execution flow by specific application areas.

How do I enable debug output in an Electron application using process.env?

To enable debug output in an Electron application, you configure the debug library using the process.env variable, applying namespace filters to isolate and emit structured log messages from your desktop components.

Do I need to install the debug library before setting up namespace-based logging?

Yes, you need to install the debug package as a prerequisite, after which you can create namespaced loggers to emit, format, and filter debug messages throughout your application's execution flow.