remote

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebuggerPort  = 5858
	InspectorPort = 9229
)
View Source
const (
	PtvsdPortEnvVariable  = "PTVSD_PORT_NUMBER"
	PtvsdSearchString     = `ptvsd\.enable_attach.*`
	PtvsdMaxFileSize      = 1024 * 1024
	PtvsdMaxNumberOfFiles = 1000
)

Variables

This section is empty.

Functions

func GetPort

func GetPort(pid int) (int, error)

func GetPortOfJavaProcess

func GetPortOfJavaProcess(pid int) (int, error)

func NewNodeDebugger

func NewNodeDebugger(p int) *nodejsDebugServer

Types

type DLV

type DLV struct {
}

func (*DLV) Attach

func (d *DLV) Attach(pid int) (DebugServer, error)

type DLVLiveDebugSession

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

func (*DLVLiveDebugSession) Cmd

func (d *DLVLiveDebugSession) Cmd() *exec.Cmd

func (*DLVLiveDebugSession) Detach

func (d *DLVLiveDebugSession) Detach() error

func (*DLVLiveDebugSession) HostType

func (d *DLVLiveDebugSession) HostType() DebugHostType

func (*DLVLiveDebugSession) Port

func (d *DLVLiveDebugSession) Port() int

type DebugHostType

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
	// Return the cmd representing the debugger process, if any
	Cmd() *exec.Cmd
}

type GdbInterface

type GdbInterface struct{}

func (*GdbInterface) Attach

func (g *GdbInterface) Attach(pid int) (DebugServer, error)

type JavaInterface

type JavaInterface struct{}

func (*JavaInterface) Attach

func (g *JavaInterface) Attach(pid int) (DebugServer, error)

type NodeJsDebugger

type NodeJsDebugger struct{}

type PythonInterface

type PythonInterface struct{}

func (*PythonInterface) Attach

func (i *PythonInterface) Attach(pid int) (DebugServer, error)

type Remote

type Remote 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.

func GetParticularDebugger

func GetParticularDebugger(dbgtype string) Remote

Jump to

Keyboard shortcuts

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