Expand description
Watching a script while it runs.
A VmDebugger is called before and after every scope and every operation
a VmScope runs. Attach one with
VmScope::with_debugger, or hand it
to the backend when a package is installed, and every scope of that script
passes it down to its children.
PrintDebugger is a ready-made one that prints what it sees, with the
stack and the registers as far as it can read them. Give it a SourceMap
and the printout names places in the original source instead of operation
indices.
Structs§
- Print
Debugger - A debugger that prints every step to standard output.
- Source
Map - What each place in a script came from in the original source.
- Source
MapLocation - A place in a script, as a
SourceMapkeys it.
Enums§
- Print
Debugger Mode - When a
PrintDebuggerprints the state around an operation or a scope.
Traits§
- VmDebugger
- Callbacks a
VmScopemakes while it runs.
Type Aliases§
- Source
MapHandle - A shared
SourceMap, for tools that build one while they run. - VmDebugger
Handle - A shared debugger, as a scope holds it.