Andres Freund <andres@anarazel.de> writes:
> I tried to use -Og many times, but in the end mostly gave up, because it still
> makes debugging harder compared to -O0.
Yeah. My own habit is to build with -O2 normally. If I'm trying to
debug some bit of code and find that I can't follow things adequately
in gdb, I recompile just the relevant file(s) with -O0.
regards, tom lane