trace
Monitor and analyze Go program execution by tracing specific functions using regex patterns, customizable package scope, and optional stack depth details with Delve MCP.
Instructions
Trace program execution
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ebpf | No | Use eBPF for tracing (experimental) | |
pid | No | Pid to attach to | |
pkg | No | Package to trace (defaults to .) | |
regexp | Yes | Regular expression to match functions to trace | |
stack | No | Show stack trace with given depth |