Important: Please read the Qt Code of Conduct -

QJSEngine variables in Locals window while debugging

  • 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;");
        return a.exec();

    When I run debugging and step to breakpoint, my locals window looks like this:
    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:
    But it does nothing.

Log in to reply