debuggers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort(pid int) (int, error)

func RunSquashClient

func RunSquashClient(debugger func(string) Debugger, conttopid platforms.Container2Pid) error

Types

type DebugHandler

type DebugHandler struct {
	// contains filtered or unexported fields
}

func NewDebugHandler

func NewDebugHandler(client *client.Squash, debugger func(string) Debugger,
	conttopid platforms.Container2Pid) *DebugHandler

type DebugServer

type DebugServer interface {
	Detach() error
	Port() int
}

type Debugger

type Debugger interface {

	/// Attach a debugger to pid and return the port that the debug server listens on.
	Attach(pid int) (DebugServer, error)
}

/ Debugger interface. implement this to add a new debugger support to squash.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳