I need to check the variable to see if it is set correctly, which can happen after several cycles.
What I'm doing now is as follows:
(gdb) b myfile.cpp:180 (gdb) c (gdb) p decoder.m_msg (gdb) c (gdb) p decoder.m_msg (gdb) c ...
Is it possible to automatically print this variable decoder.m_msg at each program break?
gdb
Deqing
source share