What is Nostr?
Michael Stapelberg 🐧🐹😺 /
npub1k7e…kcjg
2023-12-10 16:36:20

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
Author Public Key
npub1k7e4ark4f9vrlejsgyuxpuhk9zmrc8r7ru6nkvxauzvjq67qk59qedkcjg