Michael Stapelberg 🐧🐹😺 on Nostr: Just had a chance to try out a debugging technique I wanted to try for quite a while: ...
Just had a chance to try out a debugging technique I wanted to try for quite a while: coverage diff.
When you can manually reproduce a bug and want to quickly figure out which code is responsible for the different behavior (compared to regular usage of the program), you can use Go’s coverage instrumentation to display the lines of code only executed by that reproduction run: https://pastebin.com/Hq5emthj
Give it a try sometime? :)
#golang
When you can manually reproduce a bug and want to quickly figure out which code is responsible for the different behavior (compared to regular usage of the program), you can use Go’s coverage instrumentation to display the lines of code only executed by that reproduction run: https://pastebin.com/Hq5emthj
Give it a try sometime? :)
#golang