Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
flohofwoe
· 2y ago · 0 comments
That's why the debug build config one uses during development only does little to no optimizations.
Comments
[–]
kaba0
2y ago
My point is that even that little can sometimes lead to less pleasant experiences, like stepping half a function's body ahead.
[–]
flohofwoe
OP
2y ago
Hmm, I've only seen that in some 'new-ish' languages sometimes (like currently Zig), which I think is a compiler bug when generating debug info. In C/C++ I see such random stepping only when trying to debug an optimized program.