printf() not printing when RULES is set

Posted By: Smon

printf() not printing when RULES is set - 04/03/20 09:21

I would like to see the output of printf() when RULES is set for debugging purposes. Bug or feature? I couldn't find anything in the manual about this behavior. Can I enable the output myself?

Code
function run() 
{
	set(RULES);
	printf("\nHello.");
}


If I click Train, I see nothing. If I click Test, I see:

Hello.
Hello.
Hello.
Hello.
...
Posted By: AndrewAMD

Re: printf() not printing when RULES is set - 04/03/20 10:38

That’s because printf is silent during Train mode. You can use print(TO_ANY,”...”) instead.
Posted By: Smon

Re: printf() not printing when RULES is set - 04/03/20 13:07

Thank you!
© 2024 lite-C Forums