Debug output

Hi.
I’m trying the scripting tutorial.

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.

Assuming you’re on Windows.

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

qcad.exe 1>log 2>&1
cat log

Windows applications cannot show a GUI and output to the console.

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.