I can suggest printing to the log file instead :

you need to add set(LOGFILE); inside the run() function

then just print stuff that you want using :

print (TO_LOG," stuff that you want to print");

But keep in mind that you will need to convert float or int to strings, just ask me to show you how to convert them to strings if it's what you need.

the output of the print() statement is visible in the log file that will appear in notepad ++ once you click test