Console.log()
-
wrote on 10 Nov 2015, 14:35 last edited by
hello everyone,
when I use Console.log, there's nothing logged to the console, how this could be solved ?
I can't debug qml code. -
Hi,
It's
console.log("Some message")
. Did you make the same typo in your code ? -
wrote on 11 Nov 2015, 19:37 last edited by
@SGaist, No I didn't make this, I think it's configuration problem related to qt creator.
Thanks. -
wrote on 11 Nov 2015, 19:53 last edited by
Can you put break point and stop at break point in qml event ??
-
wrote on 12 Nov 2015, 00:46 last edited by
Hi,
Which platform? IIRC in Windows you have to define
CONFIG += console
to see console logs
-
wrote on 12 Nov 2015, 00:59 last edited by
@vish I did that, and the debugger does not hit the break point.
-
@vish I did that, and the debugger does not hit the break point.
wrote on 12 Nov 2015, 01:05 last edited by@Anas-A.-Ismail said:
@vish I did that, and the debugger does not hit the break point.
are you sure that code is executed?
-
Hi,
Which platform? IIRC in Windows you have to define
CONFIG += console
to see console logs
wrote on 12 Nov 2015, 01:07 last edited by@mcosta I'm working on linux fedora22 distribution.
I already did that
CONFIF += console qml_debug
and the code is executed, and working correctly, I just want to debug to test some value and some performance issues. -
wrote on 12 Nov 2015, 02:45 last edited by Anas A. Ismail 11 Dec 2015, 02:45
I almost attempted all solutions, and I don't know if there're any missing steps.
I check enable qml debugging and profiling in build step, and I enabled qml debugging with C++ , but the debugger never hits any breakpoints inside qml code, and I added CONFIF += console qml_debug, I even tried stand alone debuggers.
Are there any missing steps or configurations should I make ? -
I almost attempted all solutions, and I don't know if there're any missing steps.
I check enable qml debugging and profiling in build step, and I enabled qml debugging with C++ , but the debugger never hits any breakpoints inside qml code, and I added CONFIF += console qml_debug, I even tried stand alone debuggers.
Are there any missing steps or configurations should I make ?wrote on 12 Nov 2015, 10:07 last edited by@Anas-A.-Ismail Try to run some simple qml example and put break point and console.log() in event. Its really strange. I don't think we need some kind of config for console.log().
10/10