Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, howardR, 1 invisible), 777 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
printf() not printing when RULES is set #479506
04/03/20 09:21
04/03/20 09:21
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
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.
...

Re: printf() not printing when RULES is set [Re: Smon] #479513
04/03/20 10:38
04/03/20 10:38
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
That’s because printf is silent during Train mode. You can use print(TO_ANY,”...”) instead.

Re: printf() not printing when RULES is set [Re: Smon] #479517
04/03/20 13:07
04/03/20 13:07
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
Thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1