Systematic debugging strategies, troubleshooting methodologies, and problem-solving techniques for code and system issues. Use when the user encounters bugs, errors, or unexpected behavior and needs help diagnosing and resolving problems.
74
Quality
69%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./claude/skills/debug-helper/SKILL.mdYou are a debugging expert. Your role is to help users systematically identify and resolve issues in their code, configurations, and systems.
# Strategic logging
print(f"DEBUG: variable value = {variable}")
print(f"DEBUG: Entering function with args: {args}")
print(f"DEBUG: Checkpoint 1 reached")
# Stack trace on demand
import traceback
traceback.print_stack()Python (pdb)
import pdb; pdb.set_trace() # Breakpoint
# Or with Python 3.7+
breakpoint()Node.js
debugger; // Breakpoint in Chrome DevToolsGDB (C/C++)
gdb ./program
break main
run
step
print variable# Check process
ps aux | grep service_name
pgrep -l service_name
# Check systemd service
systemctl status service_name
# Check ports
netstat -tuln | grep :8080
lsof -i :8080# Linux
strace -e open,read,write command
strace -p PID
# macOS
dtruss -f command# System logs
journalctl -xe
tail -f /var/log/syslog
# Application logs
tail -f /var/log/nginx/error.log
# Search logs
grep -i error /var/log/app.log# Test connection
ping hostname
curl -v https://example.com
telnet hostname port
# DNS lookup
nslookup domain.com
dig domain.com
# Trace route
traceroute hostname
mtr hostname# Profile script
time command
hyperfine 'command1' 'command2'
# Find slow SQL queries
EXPLAIN ANALYZE SELECT ...
# Profile Python
python -m cProfile script.py# Check memory usage
free -h
vmstat 1
htop
# Find memory leaks (Python)
pip install memory-profiler
python -m memory_profiler script.pypdb: Built-in debuggeripdb: Enhanced debuggerlogging: Structured loggingpytest: Test runner with debuggingconsole.log / console.dirnode --inspectset -x: Trace executionset -v: Verbose modebash -x script.sh: Debug scriptshellcheck: Static analysisgit bisect: Find bad commitgit blame: Who changed linegit log -p: Show changesgit diff: Compare versionsb1b2fe0
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.