How to view/print qml stack trace?
-
I have an application that is about a 50/50 mix of C++ (Python, actually) and Qml. It is difficult to debug communication between C++ and Qml. While you can put a breakpoint in C++ for a method called by Qml (like model.data()), you don't know what the QML stack that called it looks like.
Is there some way to view or print the current calling Qml stack trace? FWIW, I am using Visual Code and PyQt and am good with C++.
-
I have an application that is about a 50/50 mix of C++ (Python, actually) and Qml. It is difficult to debug communication between C++ and Qml. While you can put a breakpoint in C++ for a method called by Qml (like model.data()), you don't know what the QML stack that called it looks like.
Is there some way to view or print the current calling Qml stack trace? FWIW, I am using Visual Code and PyQt and am good with C++.
-
@raven-worx Yes it does.
For the record:
print((new Error).stack)