Page 1 of 1

How to Debug JavaScript code in the QtCreator?

Posted: Sat Jul 14, 2018 10:04 am
by fang_h_y
Hello, Andrew.
We know the code is realized by JavaScript. When I debug the code I cannot debug the js file. Can you teach me how to debug JavaScript code with QtCreator?

Look forward to your reply.
fang_h_y

Re: How to Debug JavaScript code in the QtCreator?

Posted: Mon Jul 16, 2018 1:18 pm
by andrew
You can output states and variable values to stderr using qDebug("some string" + someVariable);

Use -enable-script-debugger to show the script debugger when an exception occurs of when the debugger; statement is used in your code.

Re: How to Debug JavaScript code in the QtCreator?

Posted: Thu Jul 19, 2018 1:00 am
by fang_h_y
Hello, andrew

Thank you very much!

fang_h_y