2022-05-07 03:28 AM
I'm debugging a problem on the target. The data I want to examine is in an array and can be easily seen in the Debugger console using "print output_data". I'd like this in a file to facilitate further host processing. When using gdb standalone I can do this with "set logging file my_log.txt" but this doesn't appear to work with GDB within STM32CubeIDE. I'm having to resort to copy and paste which works but is a bit tedious.
Solved! Go to Solution.
2022-05-07 02:43 PM
add a command
set logging on
to make logging to the file active.
hth
KnarfB
2022-05-07 02:43 PM
add a command
set logging on
to make logging to the file active.
hth
KnarfB
2022-05-08 03:27 AM
Thank you. That works. I'd assumed that setting the log file name turned logging on.
Just to be clear for anyone else...
set logging file my_log.txt
set logging on
.
.
set logging off