debugrepl

package
v1.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package debugrepl provides an interactive CLI debug REPL built on top of the extensible repl.RunEnv function and the debugger engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(engine *debugger.Engine, env *lisp.LEnv, file string, opts ...Option) error

Run starts an interactive debug REPL for the given file. It sets engine.SetStopOnEntry(true) so the REPL starts paused, then launches the eval goroutine and enters the REPL loop on the calling goroutine.

Types

type Option

type Option func(*debugHandler)

Option configures the debug REPL.

func WithStderr

func WithStderr(w io.Writer) Option

WithStderr sets the writer for debug output (prompts, status, etc.).

func WithStdin

func WithStdin(r io.ReadCloser) Option

WithStdin sets the reader for REPL input. This is primarily useful for testing, where a pipe replaces the terminal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL