Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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;");
        //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.


Log in to reply