How to debug a Go CLI app
Kai Hendry
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/blob/main/README.md 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/blob/master/docs/debugging.md ... https://www.youtube.com/watch?v=ObBuuhPfATM
2024-03-14
0.0 LBC
Copyrighted (contact publisher)
14310375 Bytes