forked from qt-creator/qt-creator
Debugger mode for simultaneous QML and C++ debugging (with plugins)
If you have plugins that extend qml, you probably want to debug them too. This is now possible with the "Start debugging QML and C++ Simultaneously" debug menu entry. Just select a QML project which uses c++ plugins and start debugging in this mode.
This commit is contained in:
@@ -229,8 +229,6 @@ QString ObjectPropertiesView::propertyBaseClass(const QDeclarativeDebugObjectRef
|
||||
QmlJSEditor::ModelManagerInterface *modelManager = pluginManager->getObject<QmlJSEditor::ModelManagerInterface>();
|
||||
QmlJS::Snapshot snapshot = modelManager->snapshot();
|
||||
|
||||
//qDebug() << property.name() << object.source().url().path();
|
||||
|
||||
QmlJS::Document::Ptr document = snapshot.document(object.source().url().path());
|
||||
if (document.isNull()) {
|
||||
|
||||
@@ -241,7 +239,6 @@ QString ObjectPropertiesView::propertyBaseClass(const QDeclarativeDebugObjectRef
|
||||
contents = ins.readAll();
|
||||
inFile.close();
|
||||
}
|
||||
//qDebug() << contents;
|
||||
|
||||
document = QmlJS::Document::create(object.source().url().path());
|
||||
document->setSource(contents);
|
||||
@@ -301,7 +298,6 @@ void ObjectPropertiesView::setObject(const QDeclarativeDebugObjectReference &obj
|
||||
|
||||
baseClassItems.insert(baseClassName, baseClassItem);
|
||||
|
||||
qDebug() << "Baseclass" << baseClassName;
|
||||
}
|
||||
currentParentItem = baseClassItems.value(baseClassName);
|
||||
item = new PropertiesViewItem(currentParentItem);
|
||||
|
||||
Reference in New Issue
Block a user