Page 1 of 1

DebugPrint under Linux

Posted: Sun Mar 09, 2025 4:19 pm
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.

Re: DebugPrint under Linux

Posted: Sun Mar 09, 2025 6:56 pm
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.

Re: DebugPrint under Linux

Posted: Sun Mar 09, 2025 7:14 pm
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.

Re: DebugPrint under Linux

Posted: Sun Mar 09, 2025 7:52 pm
by p-OS
Maybe you could try ConsolePrint() instead

Re: DebugPrint under Linux

Posted: Sat Mar 15, 2025 5:52 pm
by Yvan_Amiga
Thank you for the Hint. ConsolePrint() works as expected.