lobehub avatar

Debug

If you're working in a LobeHub codebase and need to add logging with the debug npm package, this walks you through their namespace conventions and formatting options. It triggers when you're adding loggers, troubleshooting why DEBUG=lobe-* isn't showing output, or just trying to instrument code. The guide covers the four namespace patterns they use (lobe-server, lobe-desktop, lobe-client, lobe-*-router), the standard format specifiers like %O for objects and %d for numbers, and how to actually enable debug output in browser, Node, and Electron environments. It's one of those things that seems simple until you're staring at silent logs wondering if you fat-fingered the namespace pattern.

skills.sh installs
554
GitHub stars
79.8K
last updated
Jul 14, 2026

Install

$ npx -y skills add lobehub/lobe-chat --skill debug --agent claude-code

Installs into .claude/skills of the current project.

Files

If you're working in a LobeHub codebase and need to add logging with the debug npm package, this walks you through their namespace conventions and formatting options. It triggers when you're adding loggers, troubleshooting why DEBUG=lobe-* isn't showing output, or just trying to instrument code. The guide covers the four namespace patterns they use (lobe-server, lobe-desktop, lobe-client, lobe-*-router), the standard format specifiers like %O for objects and %d for numbers, and how to actually enable debug output in browser, Node, and Electron environments. It's one of those things that seems simple until you're staring at silent logs wondering if you fat-fingered the namespace pattern.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/lobehub/lobe-chat
Category
Debugging
First seen
May 16, 2026

More from lobehub/lobe-chat

All 16

Recommended

More Debugging
1odysseus0 avatardebugodysseus0/symphonyInvestigate stuck runs and execution failures by tracing Symphony and Codex logs with issue/session identifiers; use when runs stall, retry repeatedly, or fail 551skills.sh installs
2dylantarre avatarimplementation-debuggingdylantarre/animation-principlesUse when animation doesn't work as expected, has bugs, or behaves inconsistently532skills.sh installs
3forcedotcom avatardebugging-apex-logsforcedotcom/afv-librarydebugging apex logs532skills.sh installs
4parcadei avatardebugparcadei/continuous-claude-v3Debug issues by investigating logs, database state, and git history509skills.sh installs
5secondsky avatarapi-error-handlingsecondsky/claude-skillsImplements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error455skills.sh installs
6sickn33 avatarapplication-performance-performance-optimizationsickn33/antigravity-awesome-skillsapplication performance performance optimization426skills.sh installs