본문으로 건너뛰기
cccskills
무료GitHub에 공개

debug

Elixir debugging workflow and tools. Use when: debug, debugging, pry, inspect, trace, why is this failing, what's wrong, investigate, diagnose.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Debug — Elixir Debugging Workflow

Quick Reference

Interactive Debugging

# IEx.pry — drops into interactive session at this point
require IEx; IEx.pry()

# Run tests with pry support
iex -S mix test test/overmind/mission_test.exs:42

Tracing with IO.inspect

# Inline inspect (returns the value, safe in pipelines)
value |> IO.inspect(label: "after_transform")

# Inspect in pipelines
data
|> parse()
|> IO.inspect(label: "parsed")
|> validate()
|> IO.inspect(label: "validated")

dbg() — Pipe Debugging (Elixir 1.14+)

# Shows each step of the pipeline
data
|> parse()
|> validate()
|> transform()
|> dbg()

Targeted Test Runs

# Single file
mix test test/overmind/mission_test.exs

# Single test by line number
mix test test/overmind/mission_test.exs:42

# With trace (verbose)
mix test --trace test/overmind/mission_test.exs

Daemon Debugging

# Check mission logs
overmind logs <id>

# Get mission details (os_pid, status, command)
overmind info <id>

# Check socket
ls -la ~/.overmind/overmind.sock

# Raw socket command
echo '{"command":"ps"}' | nc -U ~/.overmind/overmind.sock

Process & ETS Inspection

# Start Observer (GUI)
:observer.start()

# ETS table contents
:ets.tab2list(:overmind_missions)

# ETS lookup specific key
:ets.lookup(:overmind_missions, id)

# Process info
Process.info(pid)
Process.info(pid, [:current_function, :message_queue_len, :status])

Port Debugging

# Get os_pid from overmind
overmind info <id>  # returns os_pid field

# Check if process is running
ps -p <os_pid>

# Check what the process has open
lsof -p <os_pid>

# Send signal
kill -0 <os_pid>  # check if alive (no signal sent)

Common Issues

SymptomCheckLikely Cause
Mission stuck in :runningovermind info <id>Port not exiting, stall detection not configured
{:error, :not_found}:ets.tab2list(:overmind_missions)Wrong ID, or ETS entry cleaned up
Socket connection refusedls -la ~/.overmind/overmind.sockDaemon not running, stale socket
Test timeoutmix test --traceWaiting on assert_receive for message that never arrives
Dialyzer warningmix dialyzerTypespec mismatch, check return types

Rules

  • Never commit debug code — no IEx.pry, IO.inspect with labels, or dbg() in committed code
  • Remove after use — clean up all debug instrumentation before moving on
  • Use labels — always label IO.inspect calls to distinguish multiple inspection points
  • Prefer dbg() — for pipeline debugging, dbg() is cleaner than chained IO.inspect

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

bugfix

무료

Bug hunter. Reproduces bugs with failing tests (RED), then fixes with TDD. Accepts a prompt, issue URL, or bug description. Use when: bugfix, fix bug, debug, broken, regression, failing, doesn't work, fix this.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

commit

무료

Create a git commit following project conventions. Use when: commit, commit this, make a commit, commit changes, git commit, save changes, commit my work, stage and commit, detailed commit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

dev

무료

Implementer - fetches a GitHub issue, builds an implementation plan, then implements using TDD. Use when: implement, build this, code this, add this feature, TDD, test first, red green refactor, pick a task, next task, dev.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

learn

무료

Extract learnings from the current session and update memory/config. Use when: learn from this, what did we learn, update memory, session retrospective, extract patterns, save learnings.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

overmind

무료

Orchestrator - spawns an autonomous orchestrator agent that decomposes a task into subtasks and drives multiple Claude agents to completion. Use when: overmind, orchestrate, multi-agent, delegate, spawn agents, break down task, run agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

pair

무료

TDD pair programming with mode switching. Claude can be driver (writes code) or navigator (watches, questions, provokes). Supports GitHub issues, file watching, or arbitrary prompts. Scientific TDD, baby steps, one test at a time. Trigger on: pair, let's pair, tdd, you drive, I'll drive, dojo.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

leandronsp/overmind122026년 4월 13일 업데이트

leandronsp의 스킬 모두 보기

이 스킬의 문제 신고