debug.trace
Trace method calls on a Java class/package to record execution flow. Provide class_pattern; optionally aggregate call counts and time, or include arguments. Retrieve results via trace_result.
Instructions
Trace method calls on a class/package. Returns immediately; use debug.trace_result to get the call path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggregate | No | aggregate mode: count calls + wall-clock time per method | |
| class_pattern | Yes | e.g. com.example.service (appends * automatically) | |
| include_args | No | capture method args (slower) |