trace_error
trace_errorTrace an error term through throw sites, catch handlers, and PL/pgSQL bodies to identify its origin and handling.
Instructions
Trace an error term across throw sites (ast-grep throw new Error($MSG), throw new $ERR($MSG)), catch handlers (ast-grep try/catch), and PL/pgSQL bodies that reference the term. FTS narrows the ast-grep pass. Snapshot-strict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | ||
| projectId | No | ||
| projectRef | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| result | Yes | ||
| toolName | Yes | ||
| projectId | Yes |