I am trying to display a formatted string directly from a breakpoint action in eclipse-cdt (when programming in C).
I set up a conditional breakpoint and 2 actions associated with it: - an action in the log (I checked the "evaluate as an expression" checkbox) - a resume action to prevent disconnection from the actual stop at this breakpoint.
I did not find any documentation on the expected syntax of the expression of the action in action: I tried several options, but I was able to display only one content of the variable. From these attempts, I found that he does not expect any C-statements like printf ("i =% d", i); nor the syntax of gdb printf.
I would like to print a line like "i = 12 and sum = 34".
Thanks in advance.
source
share