Console.log()
-
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 ? -
@SGaist, No I didn't make this, I think it's configuration problem related to qt creator.
Thanks. -
@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.
-
Hi,
Which platform? IIRC in Windows you have to define
CONFIG += console
to see console logs
@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. -
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 ?@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().