Page 1 of 1

Debug output

Posted: Thu Apr 18, 2019 10:01 am
by Galudinho
Hi.
I'm trying the scripting tutorial.

https://www.qcad.org/doc/qcad/latest/de ... _tool.html

Where will be this message by this function as output?

qDebug("ExThreePoints.prototype.beginEvent was called.");

I expected that the message will be appear in "debug output" or "console" of "Qt script debugger."

I inserted "Debugger;" in my code and run it, But this message doesn't appear both of there.
Also nothing appeared on the console of QCAD too.

Do I need some setting to show it?

Thank you.

Re: Debug output

Posted: Tue Apr 23, 2019 3:38 pm
by andrew
Assuming you're on Windows.

You'll have to stream the output to a file to view it:

Code: Select all

qcad.exe 1>log 2>&1
cat log
Windows applications cannot show a GUI and output to the console.

Re: Debug output

Posted: Fri Apr 26, 2019 7:43 am
by Galudinho
Hi. Andrew.

Thank you for your reply.
As you said, I'm using Windows.
(I should tell it when I posted here...Sorry.)

I tried it below command on command prompt.
Then the Debug message was shown.
qcad.exe 1>log 2>&1
cat log
Thank you.

NOTE : The command "cat" was not worked.

... I didn't know well about standard stream.
So I searched a little about above command,
I could know "type" is the command on the Windows command prompt to show output.