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 GetPortOfJavaProcess ¶
func NewNodeDebugger ¶
func NewNodeDebugger(p int) *nodejsDebugServer
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.