forked from qt-creator/qt-creator
QML Debugger refactoring
Now, QmlEngine creates the connection to the inferior (debuggee), and notifies QmlInspector when a connection is established. Before, inspector created the debugger engin, which was wrong. QmlEngine's responsibilities are connecting to the debuggee and basic QML/JS debugging features like locals & watchers, breakpoints etc. QmlInspector takes care of Live Preview and other fancy inspection features. Reviewed-by: hjk
This commit is contained in:
@@ -331,7 +331,7 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &sp)
|
||||
QString errorMessage;
|
||||
QString settingsIdHint;
|
||||
|
||||
if (sp.executable.endsWith(_("qmlviewer")))
|
||||
if (sp.executable.endsWith(_("qmlviewer")) || sp.executable.endsWith(_("qmlobserver")))
|
||||
engineType = QmlEngineType;
|
||||
else if (sp.executable.endsWith(_(".js")))
|
||||
engineType = ScriptEngineType;
|
||||
|
Reference in New Issue
Block a user