trace
Track and analyze Go program execution by specifying functions with a regex, setting stack depth, and attaching to a process ID using the Delve MCP server.
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 |