Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultAddress defines the default debug server address. DefaultAddress = "127.0.0.1:30500" // DefaultWorkingDir defines the default directory to use as // working dir when running the app binary that will be debugged. DefaultWorkingDir = "." )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*debuggerOptions)
Option configures debugging.
func BinaryArgs ¶
BinaryArgs sets command line argument for the new process.
func ClientRunHook ¶
func ClientRunHook(fn func()) Option
ClientRunHook sets a function to be executed right before debug client is run.
func DisconnectChannel ¶
func DisconnectChannel(c chan struct{}) Option
DisconnectChannel sets the channel used by the server to signal when the client disconnects.
func ServerStartHook ¶
func ServerStartHook(fn func()) Option
ServerStartHook sets a function to be executed right before debug server starts.
func WorkingDir ¶
WorkingDir sets the working directory of the new process.
Click to show internal directories.
Click to hide internal directories.