debug

lobehub/lobe-chat · updated Apr 8, 2026

$npx skills add https://github.com/lobehub/lobe-chat --skill debug
0 commentsdiscussion
summary

debug

skill.md

Debug Package Usage Guide

Basic Usage

import debug from 'debug';

// Format: lobe-[module]:[submodule]
const log = debug('lobe-server:market');

log('Simple message');
log('With variable: %O', object);
log('Formatted number: %d', number);

Namespace Conventions

  • Desktop: lobe-desktop:[module]
  • Server: lobe-server:[module]
  • Client: lobe-client:[module]
  • Router: lobe-[type]-router:[module]

Format Specifiers

  • %O - Object expanded (recommended for complex objects)
  • %o - Object
  • %s - String
  • %d - Number

Enable Debug Output

Browser

localStorage.debug = 'lobe-*';

Node.js

DEBUG=lobe-* npm run dev
DEBUG=lobe-* pnpm dev

Electron

process.env.DEBUG = 'lobe-*';

Example

// src/server/routers/edge/market/index.ts
import debug from 'debug';

const log = debug('lobe-edge-router:market');

log('getAgent input: %O', input);

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.760 reviews
  • Nikhil Jackson· Dec 28, 2024

    Useful defaults in debug — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Pratham Ware· Dec 24, 2024

    Useful defaults in debug — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Arya Gupta· Dec 16, 2024

    debug is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Kofi Robinson· Dec 12, 2024

    Registry listing for debug matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Kofi Mensah· Dec 8, 2024

    I recommend debug for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Aarav Johnson· Dec 8, 2024

    debug has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Kofi Perez· Nov 27, 2024

    Keeps context tight: debug is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Aanya Taylor· Nov 27, 2024

    debug fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Henry Gill· Nov 19, 2024

    debug is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Yash Thakker· Nov 15, 2024

    debug is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 60

1 / 6