debugging
하는 일
이 도구는 컴퓨터 프로그램의 버그를 찾고 고치도록 돕습니다. 코드를 추측하는 대신 프로그램의 실제 동작을 조사해서 문제의 원인을 찾습니다.
사용하는 경우
- ✓프로그램이 갑자기 충돌할 때.
- ✓프로그램이 기대대로 작동하지 않지만 명확한 오류가 보이지 않을 때.
- ✓프로그램이 느리거나 응답하지 않는 경우.
스킬 링크
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/debugging/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“파일을 저장하려고 하면 제 Python 프로그램이 충돌하는데, 이유를 알아내도록 도와주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 먼저 실시간으로 프로그램이 어떻게 동작하는지 확인해 문제를 이해합니다. 그다음 해당 언어나 프로그램 유형에 맞는 특수 가이드를 사용해 정확한 해결책을 찾고, 버그가 다시 나타나지 않도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Debugging
You are a hypothesis-driven debugger. Two disciplines apply regardless of language, runtime, or whether you have source:
- Runtime truth beats code reading. Every claim about why the bug happens must come from observed state — never from a plausible story spun from reading code.
- Leave no trace. Debugging creates artifacts. Every artifact is journaled and removed before you call the task done.
The rest of this file is a map. The knowledge is in references/. This file cannot teach you how to debug — it can only tell you which reference will, for your exact situation.
🚨 READ THE REFERENCES. THIS IS NOT OPTIONAL.
This skill is intentionally small. Ninety percent of what you need to know lives in
references/. If you skim this file and start working without opening the references, you will reattach a debugger the wrong way, miss a silent-failure pattern you've never seen before, waste an hour on a source-map gotcha, or invent a worse version of a tool that already solves your problem.Every reference below is mandatory when its scenario applies. "I know this language" is not an exemption. The references exist because every runtime and every specialist tool has at least one gotcha that silently wastes hours, and you will not know which gotcha until you read the file.
The gate rule: before you run a command from a given reference's domain, you must have read that reference in this session. Re-reading across sessions is cheap. Guessing is expensive.
Runtime Setup — MANDATORY READING BEFORE ATTACHING
The methodology is language-agnostic. The commands to launch, attach, breakpoint, and inspect are not. Open the matching reference before Phase 0. Not during. Not after.
| Your runtime is… | Open this before attaching anything | Non-negotiable because… |
|---|---|---|
| Python (CPython, pytest, asyncio, Django, FastAPI) | 📖 references/runtimes/python.md | pdb vs ipdb vs debugpy vs pytest --pdb all have different attach semantics. Async code needs special breakpoint handling. Wrappers like poetry run swallow flags. |
| Node.js / tsx / ts-node / Bun / Deno (running source) | 📖 references/runtimes/node.md | tsx + node inspect CLI has a silent source-map failure — breakpoints by line number do not fire. You will not notice unless you read this first. |
| Rust (cargo, tokio, panics) | 📖 references/runtimes/rust.md | Release builds strip symbols. Tokio tasks need tokio-console. The borrow checker makes dbg! the faster tool most of the time. |
| Go (goroutines, dlv, pprof, race) | 📖 references/runtimes/go.md | Goroutine leaks and recovered panics are silent by default. dlv has a specific port convention. go test -race is the first thing to run, not the last. |
| Native binary / stripped C/C++ / no source | 📖 references/runtimes/native-binary.md | The workflow (triage → dynamic → static → scripted repro) is counterintuitive if you've never done it. strings -n 8 silently drops short interpolations like ${x} — read bytes directly for any extraction that matters. macOS adds SIP / Mach-O / lldb specifics that don't apply on Linux. |
| Bundled-app binary (Bun SEA, Node SEA, Deno compile, pkg, nexe, Electron, Tauri, PyInstaller) | 📖 references/runtimes/bundled-js-binary.md | These look like Mach-O / ELF but their high-level source is recoverable with the right per-bundler tool — Ghidra is overkill. Source-format reality varies: Bun/pkg/nexe/Electron-asar are usually plaintext; Node SEA with code-cache, PyInstaller .pyc, and Deno eszip need extra tooling; Tauri's Rust core still needs native-binary.md. Workflow: identify bundler → locate bundle → extract with the bundler-specific tool → grep. |
If you cannot honestly say you just opened the reference for your runtime, open it now.
🚨 Native binary vs bundled binary — check before committing:
file ./targetcalls them both Mach-O / ELF. The 30-second discriminator isdu -h ./target(50 MB+ suspect bundled) plusstrings -n 12 ./target | rg -iE 'bun|node_modules|webpack|esbuild|deno|pkg/lib|electron|pyinstaller|nexe|NODE_SEA_FUSE|tauri'. If hits → bundled-js-binary.md. If clean → native-binary.md.
…
자주 묻는 질문
이걸 쓰려면 프로그래머여야 하나요?
전문가일 필요는 없지만, 프로그램이 무엇을 해야 하는지 기본적인 개념이 있으면 문제를 찾는 데 큰 도움이 됩니다.
모든 종류의 프로그램에 작동하나요?
네, 여러 프로그래밍 언어와 프로그램 유형에 대한 가이드가 있으며, 보이는 소스 코드가 없는 프로그램도 포함됩니다.
‘references’란 무엇인가요?
특정 도구를 각 유형의 문제나 프로그래밍 언어에 맞게 사용하는 방법을 설명하는 자세한 가이드입니다. 시작하기 전에 참고하는 것이 중요합니다.
상세 정보
작성자의 원본 설명
Runs a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.
인기도
- GitHub 스타
- 70k
- 순위
- #3132
- 라이선스
- NOASSERTION
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
comment-checker
70k에이전트가 자동 댓글 검사기의 피드백을 이해하고 응답하도록 돕습니다. 자동화된 코드나 콘텐츠 검토 결과를 처리하는 데 유용합니다.
lcx-contribute-bug-fix
70k에이전트가 LazyCodex 관련 프로젝트에 버그 수정을 기여하도록 이슈나 PR을 만들어 코드 품질을 높이도록 돕습니다.
lcx-doctor
70k에이전트가 LazyCodex와 Codex CLI 설치 상태를 점검하도록 돕습니다. 업데이트나 변경 후 시스템이 이상하게 동작할 때 유용합니다.
lcx-report-bug
70k에이전트가 LazyCodex 프로젝트의 버그를 자세히 보고하도록 돕습니다. 개발자가 문제를 고칠 수 있도록 유용한 정보를 담은 이슈를 만듭니다.