All skills
jeffallan avatar

/debugging-wizard

@efebc44
by jeffallanjeffallan/claude-skills12k stars
1,124

Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting crashes, or performing log analysis, error investigation, or root cause analysis.

Use this Skill: https://skilld.dev/gh/jeffallan/claude-skills/debugging-wizard

This session only. Nothing lands on disk.

referencesdebugging-tools.md

≈709 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Debugging Tools

Debuggers by Language

Language Debugger Start Command
TypeScript/JS Node Inspector node --inspect
Python pdb/ipdb python -m pdb
Go Delve dlv debug
Rust rust-gdb/lldb rust-gdb ./target/debug/app
Java JDB/IDE IDE debugger

Node.js / TypeScript

# Start with inspector
node --inspect dist/main.js

# Break on first line
node --inspect-brk dist/main.js

# With ts-node
node --inspect -r ts-node/register src/main.ts
// In code
debugger; // Breakpoint

// Quick print
console.log({ variable }); // Shows name and value
console.table(arrayOfObjects); // Table format
console.trace('Called from'); // Stack trace

Python

# Start debugger
python -m pdb script.py

# Post-mortem on exception
python -m pdb -c continue script.py
# In code
breakpoint()  # Python 3.7+
import pdb; pdb.set_trace()  # Older Python

# Quick print
print(f"{variable=}")  # Python 3.8+ shows name and value

# Rich debugging
from rich import inspect
inspect(object, methods=True)

pdb Commands

Command Action
n Next line
s Step into
c Continue
l List code
p expr Print expression
pp expr Pretty print
w Where (stack)
q Quit

Go

# Start delve
dlv debug ./cmd/app

# Attach to running process
dlv attach <pid>

# Debug test
dlv test ./pkg/...
// Quick print
log.Printf("%+v", variable) // With field names
fmt.Printf("%#v\n", variable) // Go syntax representation

// Spew for complex structures
import "github.com/davecgh/go-spew/spew"
spew.Dump(variable)

Delve Commands

Command Action
break main.go:42 Set breakpoint
continue Continue
next Next line
step Step into
print var Print variable
goroutines List goroutines

VS Code Debug Config

// .vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug TypeScript",
      "program": "${workspaceFolder}/src/main.ts",
      "preLaunchTask": "tsc: build",
      "outFiles": ["${workspaceFolder}/dist/**/*.js"]
    },
    {
      "type": "python",
      "request": "launch",
      "name": "Debug Python",
      "program": "${workspaceFolder}/main.py",
      "console": "integratedTerminal"
    }
  ]
}

Quick Reference

Need Tool
Breakpoint in code debugger; / breakpoint()
Print with name console.log({x}) / print(f"{x=}")
Stack trace console.trace() / traceback.print_stack()
Inspect object console.dir(obj) / dir(obj)
Step through IDE debugger or CLI debugger

Source: SKILL.md on GitHub

1 alert17d5 checks · Risk CRITICAL
  • Gen Agent Trust Hub17d

    The skill provides comprehensive instructions, guides, and workflows for debugging applications. All references and commands are educational and standard development practices. The documentation links belong to the skill author and present no security risks.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer6mo

    1/6 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at efebc44. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago
Other metadata
metadata
{
  "author": "https://github.com/Jeffallan",
  "version": "1.1.0",
  "domain": "quality",
  "triggers": "debug, error, bug, exception, traceback, stack trace, troubleshoot, not working, crash, fix issue",
  "role": "specialist",
  "scope": "analysis",
  "output-format": "analysis",
  "related-skills": "test-master, fullstack-guardian, monitoring-expert"
}

README badge

README badge for jeffallan/claude-skills/debugging-wizard