Short:"Delve is a debugger for the Go programming language.",
Long:dlvCommandLongDesc,
}
RootCommand.PersistentFlags().StringVarP(&Addr,"listen","l","127.0.0.1:0","Debugging server listen address.")
rootCommand.PersistentFlags().StringVarP(&addr,"listen","l","127.0.0.1:0","Debugging server listen address.")
RootCommand.PersistentFlags().BoolVarP(&Log,"log","",false,"Enable debugging server logging.")
RootCommand.PersistentFlags().StringVarP(&LogOutput,"log-output","","",`Comma separated list of components that should produce debug output (see 'dlv help log')`)
RootCommand.PersistentFlags().StringVarP(&LogDest,"log-dest","","","Writes logs to the specified file or file descriptor (see 'dlv help log').")
rootCommand.PersistentFlags().BoolVarP(&log,"log","",false,"Enable debugging server logging.")
rootCommand.PersistentFlags().StringVarP(&logOutput,"log-output","","",`Comma separated list of components that should produce debug output (see 'dlv help log')`)
rootCommand.PersistentFlags().StringVarP(&logDest,"log-dest","","","Writes logs to the specified file or file descriptor (see 'dlv help log').")
RootCommand.PersistentFlags().BoolVarP(&Headless,"headless","",false,"Run debug server only, in headless mode.")
RootCommand.PersistentFlags().BoolVarP(&AcceptMulti,"accept-multiclient","",false,"Allows a headless server to accept multiple client connections.")
RootCommand.PersistentFlags().IntVar(&APIVersion,"api-version",1,"Selects API version when headless.")
RootCommand.PersistentFlags().StringVar(&InitFile,"init","","Init file, executed by the terminal client.")
RootCommand.PersistentFlags().StringVar(&BuildFlags,"build-flags",buildFlagsDefault,"Build flags, to be passed to the compiler.")
RootCommand.PersistentFlags().StringVar(&WorkingDir,"wd",".","Working directory for running the program.")
RootCommand.PersistentFlags().BoolVarP(&CheckGoVersion,"check-go-version","",true,"Checks that the version of Go in use is compatible with Delve.")
RootCommand.PersistentFlags().BoolVarP(&CheckLocalConnUser,"only-same-user","",true,"Only connections from the same user that started this instance of Delve are allowed to connect.")
RootCommand.PersistentFlags().StringVar(&Backend,"backend","default",`Backend selection (see 'dlv help backend').`)
rootCommand.PersistentFlags().BoolVarP(&headless,"headless","",false,"Run debug server only, in headless mode.")
rootCommand.PersistentFlags().BoolVarP(&acceptMulti,"accept-multiclient","",false,"Allows a headless server to accept multiple client connections.")
rootCommand.PersistentFlags().IntVar(&apiVersion,"api-version",1,"Selects API version when headless.")
rootCommand.PersistentFlags().StringVar(&initFile,"init","","Init file, executed by the terminal client.")
rootCommand.PersistentFlags().StringVar(&buildFlags,"build-flags",buildFlagsDefault,"Build flags, to be passed to the compiler.")
rootCommand.PersistentFlags().StringVar(&workingDir,"wd",".","Working directory for running the program.")
rootCommand.PersistentFlags().BoolVarP(&checkGoVersion,"check-go-version","",true,"Checks that the version of Go in use is compatible with Delve.")
rootCommand.PersistentFlags().BoolVarP(&checkLocalConnUser,"only-same-user","",true,"Only connections from the same user that started this instance of Delve are allowed to connect.")
rootCommand.PersistentFlags().StringVar(&backend,"backend","default",`Backend selection (see 'dlv help backend').`)
// 'attach' subcommand.
attachCommand:=&cobra.Command{
...
...
@@ -137,7 +137,7 @@ option to let the process continue or kill it.
},
Run:attachCmd,
}
RootCommand.AddCommand(attachCommand)
rootCommand.AddCommand(attachCommand)
// 'connect' subcommand.
connectCommand:=&cobra.Command{
...
...
@@ -152,7 +152,7 @@ option to let the process continue or kill it.
},
Run:connectCmd,
}
RootCommand.AddCommand(connectCommand)
rootCommand.AddCommand(connectCommand)
// 'dap' subcommand.
dapCommand:=&cobra.Command{
...
...
@@ -168,7 +168,7 @@ It does not yet support asynchronous request-response communication.
The server does not accept multiple client connections.`,
Run:dapCmd,
}
RootCommand.AddCommand(dapCommand)
rootCommand.AddCommand(dapCommand)
// 'debug' subcommand.
debugCommand:=&cobra.Command{
...
...
@@ -183,8 +183,8 @@ session.`,
Run:debugCmd,
}
debugCommand.Flags().String("output","./__debug_bin","Output path for the binary.")
debugCommand.Flags().BoolVar(&ContinueOnStart,"continue",false,"Continue the debugged process on start.")
RootCommand.AddCommand(debugCommand)
debugCommand.Flags().BoolVar(&continueOnStart,"continue",false,"Continue the debugged process on start.")
rootCommand.AddCommand(debugCommand)
// 'exec' subcommand.
execCommand:=&cobra.Command{
...
...
@@ -207,8 +207,8 @@ or later, -gcflags="-N -l" on earlier versions of Go.`,