Gamestudio Links
Zorro Links
Newest Posts
Trailing on Ticks
by danatrader. 07/13/20 06:21
Misreading Monitor Resolution
by Dooley. 07/11/20 23:42
Help with Martingale Script
by Qw3rty. 07/11/20 12:17
Help with code
by Qw3rty. 07/11/20 12:03
Tick Volume
by danatrader. 07/11/20 06:43
FAC Train mode
by danatrader. 07/10/20 18:13
A9
by 3run. 07/09/20 19:13
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (AndrewAMD, danatrader, AdamWu, alibaba, MatPed), 383 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dasanc, DavidFdez, TraderKevin, deus777, carolthesecond
18476 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: 173
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 173
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,024
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,024
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: 173
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 173
Germany
Thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1