GoLang Debugging
How to start and run dlv
– the GoLang debugger
1
dlv debug cmd.go -- -f input_file.csv
Once inside the debugger:
Command | Explanation |
---|---|
b C:/GitHub.com/jftuga/whatever/cmd.go:52 | break at line 52 (full path to file should be given to avoid filename comflicts) |
p something | to print the value of the something variable |
n | to execute the next line of code |
c | continue |