How to view/print qml stack trace?
-
wrote on 21 Jun 2021, 17:47 last edited by
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++.
-
wrote on 22 Jun 2021, 05:54 last edited by
@raven-worx Yes it does.
For the record:
print((new Error).stack)
1/3