- print formatted text to system debug viewer

Miscellaneous functions
(AmiBroker 60)

SYNTAX _TRACEF(''format string'', arg1, .... )
FUNCTION This function is the same as _TRACE but the very first argument is printf-style formatting string and it allows to output formatted numbers like combination of _TRACE and StrFormat.

The function writes debug messages from AFL code to system debug viewer (it calls internally OutputDebugString Win API function) or to internal Log window (Window->Log)

To view debug messages sent to system debugger you have to run DebugView freeware program from https://learn.microsoft.com/en-us/sysinternals/downloads/debugview

To view messages sent to internal log window you need to display log window (Window->Log menu)

Note for internal viewer: you can specify _TRACE("!CLEAR!"); to clear internal log window

EXAMPLE _TRACEF("Close price is = %g", Close );
SEE ALSO _TRACE() function


The _TRACEF function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.