::wxDebugMsg

void wxDebugMsg(char *fmt, ...)

Display a debugging message; under Windows, this will appear on the debugger command window, and under UNIX, it will be written to standard error.

The syntax is identical to printf: pass a format string and a variable list of arguments.