Логотип Dd Debugger

Dd Debugger

ОрганизацияПопулярное
DataDog
dd-debugger

Live Debugger - inspect runtime argument/variable values in production by placing log probes on methods. Use when asked what values a function receives, what parameters look like at runtime, or to capture live data from running services without redeploying.

Обзор

ИздательDataDog
Репозиторийpup
Название навыкаdd-debugger
Звёзды
1K
Форки
127
Встроенные файлы
Только инструкции
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Опубликовано на GitHub: DataDog. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Dd Debugger в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/DataDog/pup/tree/main/skills/dd-debugger
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DataDog/pup.git /tmp/pup
mkdir -p .claude/skills
cp -r /tmp/pup/skills/dd-debugger .claude/skills/dd-debugger
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Dd Debugger в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Dd Debugger, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Dd Debugger не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Datadog Live Debugger

Place log probes on running services without redeploying. Create probes with custom templates and conditions, and stream captured events in real time.

Prerequisites

pup must be installed:

bash
brew tap datadog-labs/pack && brew install pup

Authentication

Authenticate via OAuth2 (recommended) or API keys:

bash
# OAuth2 (recommended)
pup auth login

# Or use API keys
export DD_API_KEY="key" DD_APP_KEY="key" DD_SITE="datadoghq.com"

Typical Workflow

Prefer --capture expressions over full snapshots. Capture expressions are lighter-weight, faster, and return exactly the data you need.

  1. If you don't know the service, ask the user before proceeding.
  2. Verify the service using pup debugger context <service> to list environments with active instances. If multiple environments exist, ask the user which one to target before proceeding.
  3. Find a method using the dd-symdb skill (pup symdb search --view probe-locations)
  4. Place a probe with capture expressions for the values you need
  5. Watch events with --fields for compact output
  6. Delete the probe when done
bash
# 0. List environments (if multiple, ask user which to use)
pup debugger context my-service --fields service,language,envs

# 1. Create a probe with capture expressions (recommended)
#    Use --fields id to get just the probe ID back
pup debugger probes create \
  --service my-service \
  --env production \
  --probe-location "com.example.MyController:handleRequest" \
  --capture "request.id" \
  --capture "request.headers" \
  --ttl 1h \
  --fields id

# 2. Stream events with compact output
pup debugger probes watch <PROBE_ID> --timeout 60 --limit 10 \
  --fields "message,captures,timestamp"

# 3. Clean up
pup debugger probes delete <PROBE_ID>

Service Context

Always run this before creating probes. It returns JSON by default (like all other commands) showing environments with active instances, tracer versions, and supported probe features. If the service runs in multiple environments, ask the user which one to target — don't guess.

bash
# Full JSON output (default)
pup debugger context my-service

# Compact: just the fields you need
pup debugger context my-service --fields service,language,envs

# Filter to a specific environment
pup debugger context my-service --env production --fields service,envs,repo
FlagDescriptionDefault
--envFilter to a specific environmentAll environments
--fieldsComma-separated fields: service, language, envs, repoFull JSON response

Probe Management

List Probes

bash
# All probes
pup debugger probes list

# Filter by service
pup debugger probes list --service my-service

Get Probe Details

bash
pup debugger probes get <PROBE_ID>

Create a Log Probe

bash
pup debugger probes create \
  --service my-service \
  --env staging \
  --probe-location "com.example.MyClass:myMethod" \
  --capture "user.name" \
  --capture "order.items[0].price"

To disambiguate overloaded methods, pass a signature with argument types:

bash
pup debugger probes create \
  --service my-service \
  --env staging \
  --probe-location "com.example.MyClass:myMethod(int, java.lang.String)" \
  --capture "user.name"

Options:

FlagDescriptionDefault
--serviceService name (required)—
--envEnvironment (required)—
--probe-locationTYPE:METHOD or TYPE:METHOD(args) (required). The signature form disambiguates overloaded methods.—
--languagejava, python, dotnet, goAuto-detected from symdb
--capture EXPRCapture expression (repeatable). Use dot notation for fields, brackets for indexing.None
--captureWithout value: enable full snapshot (capture everything).No snapshot
--templateLog message template with {variable} placeholders. Can combine with --capture.Auto-generated
--conditionDSL condition to filter capturesNone
--depthHow deep the tracer traverses the object graph when capturing (1–5). Start at 1 to see field names/types, increase to drill in.1
--rateSnapshots per second1
--budgetMax probe hits. Only "total" window supported (hourly/daily not yet available).1000
--ttlProbe time-to-live (e.g., 10m, 1h, 24h). Probe auto-expires.1h

Capture Expressions (Recommended)

Always prefer capture expressions over full snapshots. They are lighter-weight and return exactly the data you need.

bash
# Capture specific fields using dot notation
--capture "user.name"
--capture "request.headers"

# Access array elements
--capture "orders[0].total"
--capture "items[len(items)].name"

# Chain member access
--capture "response.body.data.id"

Multiple --capture flags can be combined. Each expression is independently evaluated.

bash
# Capture multiple specific values
pup debugger probes create \
  --service my-service --env prod \
  --probe-location "OrderService:processOrder" \
  --capture "order.id" \
  --capture "order.items[0].price" \
  --capture "customer.email"

Tip: Start with --depth 1 (the default) to see field names and types, then increase depth to drill into interesting subtrees. Use --depth 5 for deeply nested objects.

Full Snapshot (use sparingly)

Use bare --capture (no value) only when you don't know which fields to inspect:

bash
# Full snapshot — captures all arguments, locals, return value
pup debugger probes create \
  --service my-service --env staging \
  --probe-location "com.example.MyClass:myMethod" \
  --capture

You can combine snapshot with capture expressions:

bash
# Full snapshot + specific expressions
--capture --capture "user.name"

Templates

Templates can be used alongside capture expressions for custom log messages:

bash
# Template with capture expressions
pup debugger probes create \
  --service my-service --env prod \
  --probe-location "MyClass:myMethod" \
  --capture "user.id" \
  --template "Processing request for user={user.id}, took {@duration}ms"

Template syntax uses {variable} placeholders:

bash
--template "Processing order={orderId} for user={userId}"
--template "handleRequest took {@duration}ms"

Conditions filter when the probe fires:

bash
--condition "status == 'error'"
--condition "@duration > 100"

Delete a Probe

bash
pup debugger probes delete <PROBE_ID>

Watch Probe Events

Stream log events and status errors from a probe in real time.

bash
pup debugger probes watch <PROBE_ID>

Options:

FlagDescriptionDefault
--timeoutExit after N seconds120
--limitExit after N log eventsunlimited
--fromStart time for log querynow
--waitWait up to N seconds for the probe to become available0
--fieldsComma-separated fields to include: message, captures, timestamp. Compact JSON output.Full debugger payload

Behavior:

  • Without --fields: outputs the trimmed debugger payload (snapshot, probe info, stack) — not the full log envelope
  • With --fields: outputs only the requested fields as compact JSON per event
  • Polls for new log events and probe status errors every 1s
  • Default --from is now — only shows new events going forward
  • Use --from 5m or --from 1h to include recent historical events
  • Probe status errors (e.g., instrumentation failures) go to stderr
  • Exit code 0 if events received, 1 if timed out with no events
  • Use --wait <seconds> to retry probe existence check (handles create → watch pipeline); default is 0 (fail immediately if not found)

Using --fields for compact output

For most agent use cases, --fields gives you exactly what you need without jq:

bash
# Message + captures + timestamp (most common)
pup debugger probes watch <ID> --fields "message,captures,timestamp" --limit 5

# Template message only (one line per event)
pup debugger probes watch <ID> --fields "message" --limit 10

# Just captures (expression values or snapshot data)
pup debugger probes watch <ID> --fields "captures" --limit 1

Extracting fields with jq (reference)

When using the default output (no --fields), the debugger payload is at the top level. Common jq patterns:

bash
# Extract a specific captured expression
pup debugger probes watch <ID> --limit 1 \
  | jq '.snapshot.captures.return.captureExpressions'

# Get captured argument values
pup debugger probes watch <ID> --limit 1 \
  | jq '.snapshot.captures.return.arguments'

Default output structure (trimmed to debugger payload):

.snapshot.captures.return.arguments          → method arguments
.snapshot.captures.return.locals             → local variables
.snapshot.captures.return.captureExpressions → capture expression values
.snapshot.probe.id                           → probe ID
.snapshot.probe.location                     → source location

Supported Languages

Language--language value
Javajava
Pythonpython
.NETdotnet

Failure Handling

ProblemFix
Wrong env / no instancesUse pup debugger context <service> to list valid environments
"probe not found"Use --wait <seconds> to retry, e.g. pup debugger probes watch <ID> --wait 10
No events appearingCheck --from (default is now); probe may need time to instrument
Instrumentation errorsCheck stderr output from watch for status errors
Auth errorRun pup auth login or set DD_API_KEY + DD_APP_KEY + DD_SITE
Wrong method signatureUse the dd-symdb skill to find exact TYPE:METHOD or TYPE:METHOD(args) values

References

Часто задаваемые вопросы

Что делает навык ИИ Dd Debugger?

Live Debugger - inspect runtime argument/variable values in production by placing log probes on methods. Use when asked what values a function receives, what parameters look like at runtime, or to capture live data from running services without redeploying.

Зачем использовать Dd Debugger в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Dd Debugger — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Dd Debugger в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/DataDog/pup/tree/main/skills/dd-debugger. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Dd Debugger?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Dd Debugger?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Dd Debugger: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Dd Debugger?

Да. Навык опубликован на GitHub автором DataDog по лицензии Apache-2.0. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇