Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QJSEngine variables in Locals window while debugging
Qt 6.11 is out! See what's new in the release blog

QJSEngine variables in Locals window while debugging

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 332 Views
  • 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.
  • T Offline
    T Offline
    Tarae
    wrote on last edited by
    #1

    I have a simple program:

    #include <QCoreApplication>
    #include <QJSEngine>
    
    int main(int argc, char *argv[])
    {
        QCoreApplication a(argc, argv);
        QJSEngine engine;
        engine.evaluate("var foo = 3;");
        //breakpoint
        return a.exec();
    }
    

    When I run debugging and step to breakpoint, my locals window looks like this:
    9a169f5c-a95a-4413-9429-8e97d9a4de48-image.png
    Is there a way, how can I see variables in js engine in this window too? Or in other window?
    I've read QML Debugger Console can evaluate JavaScript expressions, so I tried:
    9804441e-efb8-49cc-84ce-e062d7557524-image.png
    But it does nothing.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved