When stepping through my code using VSCode debugging, I see it skip lines or jump around in such a way that suggests it is jumping through optimized code. For example, it will skip lines where I have breakpoints set, even though I expect the line to be executed. Is go test
running with compiler optimizations enabled? If so, is there a way to disable those optimizations? Either in the the go test
command line or with VSCode settings? I tried -gcflags='-N -l'
in my launch.json for a test configuration but it is not recognized.