stacktrace_get
Retrieve the call stack of a thread for debugging .NET applications. Async state-machine frames are flattened to original method names and BCL infrastructure frames are hidden by default.
Instructions
Get the call stack of a thread. By default async state-machine frames are flattened back to their original method names (e.g. UserService.d__3.MoveNext → UserService.GetAsync) and BCL async infrastructure frames are hidden. Pass raw=true for the unmodified DAP frames.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stacktrace_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | If true, return raw DAP frames (no async flattening, no infrastructure filtering). | |
| levels | No | Maximum frames to return. | |
| threadId | No | Thread id. Defaults to the last-stopped thread. | |
| startFrame | No | Skip this many top frames (0 = include the topmost). |