Debug javascript in QML possible?
-
Hi,
Yes, you should be able to debug QML/JS functions. The documentation for this is located at http://doc.qt.nokia.com/qtcreator-snapshot/creator-debugging-qml.html .
Regards,
Michael -
I have read the link you listed. If I use the code generated from Qcreator Qt Quick Application. The main.cpp file:
... QmlApplicationViewer viewer; viewer.setMainQmlFile(QLatin1String("qml/main.qml")); viewer.show(); ...
I can debug it.
But if I replace above code with:
QDeclarativeView view; view.setSource(QUrl::fromLocalFile("qml/main.qml")); view.show();
Debugger can not be started. Why?
-
Most likely the QDeclarativeView does not start the debugging support.
This feature is turned off unless specifically set up since being able to debug a application can be a security issue.