We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Can anyone tell me how to print the value of a source code string in the simulator? I am trying to use the simulator printf() function in a breakpoint assignment as follows:
bs \assertions\assert\81, 1, "printf(\"%s.\",\\assertions\\assert\\debugstr)"
char debugStr[CHARS_PER_LINE];
<printf: argument 2 invalid>
Type the following in the comand window:
d debugStr, &(((debugStr)) [sizeof(debugStr)-1])
bs \assertions\assert\81, 1, "d debugStr, &(((debugStr)) [sizeof(debugStr)-1])"