debug

Configure namespaced debug logging across multi-module JavaScript projects.

30|10|Updated Aug 5, 2024
One-click install
npx skills add https://github.com/find-xposed-magisk/lobe-chat --skill debug-find-xposed-magisk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/find-xposed-magisk/lobe-chat/tree/main/.agents/skills/debug
Command: npx skills add https://github.com/find-xposed-magisk/lobe-chat --skill debug-find-xposed-magisk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a concise guide for implementing and using the debug logging package to instrument code with namespaced logs for better observability.

Core Features & Use Cases

  • Unified logging: enables consistent, namespaced logs across server, client, and router components.
  • Configurable output: supports browser and Node.js environments with simple enablement patterns.
  • Practical examples: shows common usage patterns for log formatting and variable inspection.

Quick Start

Configure and use the debug package to emit namespaced logs for your server modules.

Frequently Asked Questions about debug

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

FAQPage Schema
How do I enable namespaced debug logging across multiple Node.js modules?

You enable namespaced debug logging by applying the debug package to emit structured logs across server modules, allowing you to filter output by namespace during development. This provides consistent log formatting for complex flows.

What is the best way to filter debug logs in a JavaScript client and server project?

The best way to filter debug logs is using namespace conventions with the debug package, which supports simple enablement patterns to toggle output across browser and Node.js environments without changing application code.

Does the debug logging package work in Electron desktop applications?

Yes, the debug logging package works in Electron desktop contexts, providing unified logging and configurable output that spans server, client, and router components for consistent observability.

How do I format and inspect variables in JavaScript debug logs?

You format and inspect variables in JavaScript debug logs by using common format specifiers provided by the debug package, applying practical usage patterns for log formatting and variable inspection across your modules.

Why should I use namespaced debug logs instead of console.log for complex flows?

You should use namespaced debug logs instead of console.log because they offer structured, namespaced output that enables easy filtering and consistent formatting across multi-module JavaScript projects, solving complex flow observability issues.