Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
Options is a type that represents a map of configuration options where the key is a string and the value can be any type. They are passed to Delve as command line option.
func Default ¶
func Default() Options
Default returns an Options map with a default configuration settings for the application.
func Headless ¶
func Headless() Options
Headless sets the "headless" option to true, which runs delve in server mode
func NoWait ¶
func NoWait() Options
NoWait returns an Options map with settings to continue execution immediately. Debugged application wouldn't wait for a debugger to be attached.
func WaitDebugger ¶
func WaitDebugger() Options
WaitDebugger returns an Options map with the "continue" option set to false, the debugged application will wait until a debugger is attached, after having generating a first log indicating on which endpoint it listens.
func WithApiVersion ¶
WithApiVersion sets the API version in the options with the specified version number.
func WithOption ¶
WithOption creates an Options instance with a given key and one or more values.