DebugPrint under Linux

Find quick help here to get you started with Hollywood
Post Reply
Yvan_Amiga
Posts: 21
Joined: Mon Mar 14, 2022 5:05 pm

DebugPrint under Linux

Post by Yvan_Amiga »

How can I send the output of DebugPrint() in a bash shell under Linux?

I start the interpreter in the shell and I already tried thinks like redirecting error console to out console like

Code: Select all

./Interpreter hollywood_stript.hws 2> error.txt 1> output.txt

or 

./Interpreter hollywood_stript.hws 2>1
But none of it worked.
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: DebugPrint under Linux

Post by Flinx »

When I start the interpreter in Mint using the terminal, I get the debug output via standard output in the terminal window. Redirecting to a file also works without specifying the channel.
This answer may not help much now, but that seems to be the normal behavior.
Yvan_Amiga
Posts: 21
Joined: Mon Mar 14, 2022 5:05 pm

Re: DebugPrint under Linux

Post by Yvan_Amiga »

Thank you for sharing. Okay that's strange. At least it seems that not I am doing something wrong but my Manjaro Linux is strange. I am done coding for today but next time I will try with other shells than bash. I recently even installed Powershell under Linux. Maybe on of them will behave as expected.
p-OS
Posts: 171
Joined: Mon Nov 01, 2010 11:56 pm

Re: DebugPrint under Linux

Post by p-OS »

Maybe you could try ConsolePrint() instead
Yvan_Amiga
Posts: 21
Joined: Mon Mar 14, 2022 5:05 pm

Re: DebugPrint under Linux

Post by Yvan_Amiga »

Thank you for the Hint. ConsolePrint() works as expected.
Post Reply