debug

package
v0.0.0-...-86e9f11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package debug provides remote debugging tools

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fd

func Fd(fd int, lg *log.Logger)

Fd binds an http server to the provided file descriptor and starts it asynchronously. If the server ever stops running, the error returned from http.Serve is passed to errorln.

func Path

func Path(path string, ok func(*syscall.Ucred) bool, lg *log.Logger)

Path creates a unix socket at path and listens on it for debug connections. The ok() function is used to filter connections based on the credentials of the process on the other end of the connection.

See also Fd, which uses a local file descriptor rather than a local unix socket path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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