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:
Lasse Holmstedt
2010-04-21 16:22:30 +02:00
parent 3fe1617ac8
commit d6636e4180
8 changed files with 314 additions and 121 deletions

View File

@@ -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);