How to debug a Go CLI app

Опубликовано: 13 Октябрь 2024
на канале: Kai Hendry
1,109
39

Perhaps use this approach to better understand what your Go based command line interface (CLI) apps are doing.

00:00 Setup some code to debug https://github.com/spf13/cobra-cli/bl...
01:27 Configure the VS code launch.json for running the debugger
02:00 Adding log points instead of print statements

https://github.com/golang/vscode-go/b...