debuggers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFirstProcess added in v0.2.1

func FindFirstProcess(pids []int, processName string) (int, error)

func GetPort

func GetPort(pid int) (int, error)

func GetPortOfJavaProcess added in v0.2.1

func GetPortOfJavaProcess(pid int) (int, error)

func RunSquashClient

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

Types

type DebugController added in v0.3.0

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

func NewDebugController added in v0.3.0

func NewDebugController(debugger func(string) Debugger,
	udpateAttachment func(*models.DebugAttachment) error,
	conttopid platforms.ContainerProcess) *DebugController

func (*DebugController) HandleAddedRemovedAttachments added in v0.3.0

func (d *DebugController) HandleAddedRemovedAttachments(attachments, removedAtachment []*models.DebugAttachment) error

type DebugHandler

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

func NewDebugHandler

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

type DebugHostType added in v0.2.1

type DebugHostType int

DebugHostType - type of host to connect debugger

const (
	// DebugHostTypeClient - debugger needs to connect to squash-client
	DebugHostTypeClient DebugHostType = iota
	// DebugHostTypeTarget - debugger needs to connect to target
	DebugHostTypeTarget
)

type DebugServer

type DebugServer interface {
	/// Detach from the process we are debugging (allowing it to resume normal execution).
	Detach() error
	/// Returns either DebugHostTypeClient or DebugHostTypeTarget
	HostType() DebugHostType
	/// Return the port that the debug server listens on.
	Port() int
}

type Debugger

type Debugger interface {

	/// Attach a debugger to pid and return the a debug server object
	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