Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14931

The QML/JS console is fairly useless

    XMLWordPrintable

Details

    • many

    Description

      Among other things:

      1. It cannot output complex types. If you know the members of a complex type you can query them, but just stating the variable name of an object, array or function outputs nothing whatsoever.

      2. Functions with string properties have a length. This is actually the same in the locals and expressions view. The length property should be 0 unless the object is an array or the length was specifically assigned.

      3. console.log(...) when sent through the console does not lead to anything being logged on the console.

      4. Syntax errors are silently ignored.

      5. QML objects aren't shown, but also silently ignored.

      6. There is no way to run a multiline script in the console.

      This is all when the program is stopped. While the program is running you get different, but equally strange behavior:

      1. "Qt" returns an "Object" with lots of numeric properties that don't have names.

      2. "console" is an "Object" without properties. "console.log" is nothing.

      3. Any QML id from the program being run is "<undefined>"

      4. "this" is an "<unnamed object>"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: