dap

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dap is ant dap, the debug adapter: it serves the Debug Adapter Protocol on a stream and runs one program under the interpreter's debugger, in its own process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, in io.Reader, out, log io.Writer) int

Serve serves one debug session on in and out until the client disconnects, logging to log. It returns the command's exit status.

func ServeFS added in v0.3.1

func ServeFS(ctx context.Context, fsys fs.FS, in io.Reader, out, log io.Writer) int

ServeFS is Serve for a program whose modules are in fsys instead of the operating system's files, as where there are none, on js/wasm: the program, the sources of breakpoints and the stdin file are then paths in fsys, with or without a leading slash, and the environment is the launch's env alone. A nil fsys is the operating system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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