Skip to main content

Module trace_error

Module trace_error 

Source
Expand description

fallow trace-error: resolve a runtime stack trace’s frames against the project graph.

Two independent halves, kept apart so each is testable on its own:

  1. parse_stack_trace turns text into frames. Pure, no graph, no I/O.
  2. resolve_stack_trace asks the module graph which definitions each frame’s identifier names.

The graph is asked ONLY about frames whose file resolved to project source. Everything else keeps its place in the reported array with its origin recorded, so the reported frame numbering matches the trace as pasted and the counts close.

No source-map layer. A frame pointing into a build artifact reports that fact rather than being rebound through a map that may be stale, because a confidently wrong line is worse than a named refusal.

Structs§

ParsedStackTrace
A stack trace after parsing and before resolution.
RawFrame
One frame as read from the input, before the graph is consulted.

Constants§

MAX_STACK_TRACE_BYTES
Largest stack trace this verb will read, from a file or from stdin.

Functions§

parse_stack_trace
Parse a runtime stack trace into frames.
resolve_stack_trace
Resolve a parsed stack trace against the module graph.
trace_error_with_session
Resolve a stack trace through an existing analysis session.