service

package
v0.0.0-...-835ebca Latest Latest
Warning

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

Go to latest
Published: May 8, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Detach detaches the debugger, optionally killing the process.
	Detach(killProcess bool) error

	// GetState returns the current debugger state.
	GetState() (*api.DebuggerState, error)

	// Continue resumes process execution.
	Continue() (*api.DebuggerState, error)
	// Next continues to the next source line, not entering function calls.
	Next() (*api.DebuggerState, error)
	// Step continues to the next source line, entering function calls.
	Step() (*api.DebuggerState, error)
	// SwitchThread switches the current thread context.
	SwitchThread(threadID int) (*api.DebuggerState, error)
	// Halt suspends the process.
	Halt() (*api.DebuggerState, error)

	// GetBreakPoint gets a breakpoint by ID.
	GetBreakPoint(id int) (*api.BreakPoint, error)
	// CreateBreakPoint creates a new breakpoint.
	CreateBreakPoint(*api.BreakPoint) (*api.BreakPoint, error)
	// ListBreakPoints gets all breakpoints.
	ListBreakPoints() ([]*api.BreakPoint, error)
	// ClearBreakPoint deletes a breakpoint by ID.
	ClearBreakPoint(id int) (*api.BreakPoint, error)

	// ListThreads lists all threads.
	ListThreads() ([]*api.Thread, error)
	// GetThread gets a thread by its ID.
	GetThread(id int) (*api.Thread, error)

	// ListPackageVariables lists all package variables in the context of the current thread.
	ListPackageVariables(filter string) ([]api.Variable, error)
	// EvalSymbol returns a variable in the context of the current thread.
	EvalSymbol(symbol string) (*api.Variable, error)
	// ListPackageVariablesFor lists all package variables in the context of a thread.
	ListPackageVariablesFor(threadID int, filter string) ([]api.Variable, error)
	// EvalSymbolFor returns a variable in the context of the specified thread.
	EvalSymbolFor(threadID int, symbol string) (*api.Variable, error)

	// ListSources lists all source files in the process matching filter.
	ListSources(filter string) ([]string, error)
	// ListFunctions lists all functions in the process matching filter.
	ListFunctions(filter string) ([]string, error)

	// ListGoroutines lists all goroutines.
	ListGoroutines() ([]*api.Goroutine, error)
}

Client represents a debugger service client. All client methods are synchronous.

Directories

Path Synopsis
Package rest provides RESTful HTTP client and server implementations.
Package rest provides RESTful HTTP client and server implementations.

Jump to

Keyboard shortcuts

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