forked from qt-creator/qt-creator
Move DebuggerRunConfigurationAspect into Debugger
Change-Id: I03cab5d963a6d7c77171efe360a552d8109f6a8b Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <debugger/debuggerrunconfigurationaspect.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
@@ -91,8 +92,8 @@ QString QmlProjectRunConfiguration::disabledReason() const
|
||||
void QmlProjectRunConfiguration::ctor()
|
||||
{
|
||||
// reset default settings in constructor
|
||||
ProjectExplorer::DebuggerRunConfigurationAspect *aspect
|
||||
= extraAspect<ProjectExplorer::DebuggerRunConfigurationAspect>();
|
||||
Debugger::DebuggerRunConfigurationAspect *aspect
|
||||
= extraAspect<Debugger::DebuggerRunConfigurationAspect>();
|
||||
aspect->setUseCppDebugger(false);
|
||||
aspect->setUseQmlDebugger(true);
|
||||
aspect->suppressQmlDebuggingSpinbox();
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "qmlprojectruncontrol.h"
|
||||
#include "qmlprojectrunconfiguration.h"
|
||||
#include <coreplugin/icore.h>
|
||||
#include <debugger/debuggerrunconfigurationaspect.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/kit.h>
|
||||
@@ -200,8 +201,8 @@ QString QmlProjectRunControlFactory::displayName() const
|
||||
RunControl *QmlProjectRunControlFactory::createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage)
|
||||
{
|
||||
Debugger::DebuggerStartParameters params;
|
||||
ProjectExplorer::DebuggerRunConfigurationAspect *aspect
|
||||
= runConfig->extraAspect<ProjectExplorer::DebuggerRunConfigurationAspect>();
|
||||
Debugger::DebuggerRunConfigurationAspect *aspect
|
||||
= runConfig->extraAspect<Debugger::DebuggerRunConfigurationAspect>();
|
||||
params.startMode = Debugger::StartInternal;
|
||||
params.executable = runConfig->observerPath();
|
||||
params.processArgs = runConfig->viewerArguments();
|
||||
|
||||
Reference in New Issue
Block a user