Skip to main content

Module debugger

Module debugger 

Source
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§

PrintDebugger
A debugger that prints every step to standard output.
SourceMap
What each place in a script came from in the original source.
SourceMapLocation
A place in a script, as a SourceMap keys it.

Enums§

PrintDebuggerMode
When a PrintDebugger prints the state around an operation or a scope.

Traits§

VmDebugger
Callbacks a VmScope makes while it runs.

Type Aliases§

SourceMapHandle
A shared SourceMap, for tools that build one while they run.
VmDebuggerHandle
A shared debugger, as a scope holds it.