Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Console.log()

    General and Desktop
    console.log log debug qml
    4
    10
    13528
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anas A. Ismail 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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        It's console.log("Some message"). Did you make the same typo in your code ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply Reply Quote 0
        • A
          Anas A. Ismail @SGaist last edited by

          @SGaist, No I didn't make this, I think it's configuration problem related to qt creator.
          Thanks.

          1 Reply Last reply Reply Quote 0
          • V
            vish last edited by

            Can you put break point and stop at break point in qml event ??

            Development is possible at any level.

            A 1 Reply Last reply Reply Quote 0
            • M
              mcosta last edited by

              Hi,

              Which platform? IIRC in Windows you have to define

              CONFIG += console
              

              to see console logs

              Once your problem is solved don't forget to:

              • Mark the thread as SOLVED using the Topic Tool menu
              • Vote up the answer(s) that helped you to solve the issue

              You can embed images using (http://imgur.com/) or (http://postimage.org/)

              A 1 Reply Last reply Reply Quote 0
              • A
                Anas A. Ismail @vish last edited by

                @vish I did that, and the debugger does not hit the break point.

                M 1 Reply Last reply Reply Quote 0
                • M
                  mcosta @Anas A. Ismail 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?

                  Once your problem is solved don't forget to:

                  • Mark the thread as SOLVED using the Topic Tool menu
                  • Vote up the answer(s) that helped you to solve the issue

                  You can embed images using (http://imgur.com/) or (http://postimage.org/)

                  1 Reply Last reply Reply Quote 0
                  • A
                    Anas A. Ismail @mcosta 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.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Anas A. Ismail last edited by Anas A. Ismail

                      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 ?

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        vish @Anas A. Ismail 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().

                        Development is possible at any level.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post