I ran the configure script with the --enable-debug
flag, then ran make
. I am running unit tests:
gdb --args src/test/test_bitcoin --log_level=all --run_test=script_standard_tests
I'm trying to step through the execution of the source files using gdb, but I am still getting <optimized out>
for many variables, and it skips lines here and there. I thought that the --enable-debug
flag would turn off optimization, but am I mistaken? I'm wondering if the optimization is always on for the tests or if there is a way to turn them off.