А ещё в хелпе на IAR нашел:
Цитата
Formatted output
C-SPY provides various methods for producing formatted output:
_ _message argList; Prints the output to the Debug Log window.
_ _fmessage file, argList; Prints the output to the designated file.
_ _smessage argList; Returns a string containing the formatted output.
where argList is a comma-separated list of C-SPY expressions or strings, and file is the result of the _ _openFile system macro, see _ _openFile.
Click the arrows below to display more information.
Examples
Use the _ _message statement, as in this example:
var1 = 42;var2 = 37;_
__message "This line prints the values ", var1, " and ", var2, " in the Log window.";This should produce this message in the Log window:
C-SPY provides various methods for producing formatted output:
_ _message argList; Prints the output to the Debug Log window.
_ _fmessage file, argList; Prints the output to the designated file.
_ _smessage argList; Returns a string containing the formatted output.
where argList is a comma-separated list of C-SPY expressions or strings, and file is the result of the _ _openFile system macro, see _ _openFile.
Click the arrows below to display more information.
Examples
Use the _ _message statement, as in this example:
var1 = 42;var2 = 37;_
__message "This line prints the values ", var1, " and ", var2, " in the Log window.";This should produce this message in the Log window:
каким образом можно прикрутить вышеуказанное к проекту ????
Или подскажите вариант шустрой отладочной трассировки...
Вариант :
Код
#define DEBUG
#ifdef DEBUG
printf("Log message here...\n");
#endif
#ifdef DEBUG
printf("Log message here...\n");
#endif
слишком медленный
