This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using Simulator printf("%s")

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)"
debugStr is defined within Assert()as follows:
char debugStr[CHARS_PER_LINE];
I have tried many variations on this theme but all report:
<printf: argument 2 invalid>

Thanks,
Barry

0