2013-03-27 13:03:15 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** Copyright (C) 2015 The Qt Company Ltd.
|
|
|
|
|
** Contact: http://www.qt.io/licensing
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2015-01-14 18:07:15 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms and
|
|
|
|
|
** conditions see http://www.qt.io/terms-conditions. For further information
|
2014-10-01 13:21:18 +02:00
|
|
|
** use the contact form at http://www.qt.io/contact-us.
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
2014-10-01 13:21:18 +02:00
|
|
|
** General Public License version 2.1 or version 3 as published by the Free
|
|
|
|
|
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
|
|
|
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
|
|
|
** following information to ensure the GNU Lesser General Public License
|
|
|
|
|
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** In addition, as a special exception, The Qt Company gives you certain additional
|
|
|
|
|
** rights. These rights are described in The Qt Company LGPL Exception
|
2013-03-27 13:03:15 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "debuggerrunconfigurationaspect.h"
|
|
|
|
|
|
|
|
|
|
#include "debuggerconstants.h"
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/icontext.h>
|
2013-03-27 17:17:24 +01:00
|
|
|
#include <coreplugin/icore.h>
|
|
|
|
|
#include <coreplugin/helpmanager.h>
|
2013-04-05 13:20:52 +02:00
|
|
|
#include <projectexplorer/kitinformation.h>
|
2013-03-27 13:03:15 +01:00
|
|
|
#include <projectexplorer/project.h>
|
|
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
2013-03-27 17:17:24 +01:00
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2013-03-27 13:03:15 +01:00
|
|
|
#include <projectexplorer/target.h>
|
2014-03-26 11:23:04 +01:00
|
|
|
#include <projectexplorer/buildconfiguration.h>
|
|
|
|
|
#include <projectexplorer/buildstep.h>
|
|
|
|
|
#include <projectexplorer/buildsteplist.h>
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2013-03-27 17:17:24 +01:00
|
|
|
#include <QCheckBox>
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
static const char USE_CPP_DEBUGGER_KEY[] = "RunConfiguration.UseCppDebugger";
|
2013-06-07 09:20:48 +02:00
|
|
|
static const char USE_CPP_DEBUGGER_AUTO_KEY[] = "RunConfiguration.UseCppDebuggerAuto";
|
2013-03-27 13:03:15 +01:00
|
|
|
static const char USE_QML_DEBUGGER_KEY[] = "RunConfiguration.UseQmlDebugger";
|
|
|
|
|
static const char USE_QML_DEBUGGER_AUTO_KEY[] = "RunConfiguration.UseQmlDebuggerAuto";
|
|
|
|
|
static const char QML_DEBUG_SERVER_PORT_KEY[] = "RunConfiguration.QmlDebugServerPort";
|
|
|
|
|
static const char USE_MULTIPROCESS_KEY[] = "RunConfiguration.UseMultiProcess";
|
|
|
|
|
|
2014-03-26 11:23:04 +01:00
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
namespace Debugger {
|
2013-03-27 17:17:24 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// DebuggerRunConfigWidget
|
|
|
|
|
//
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2014-03-26 16:49:40 +01:00
|
|
|
class DebuggerRunConfigWidget : public RunConfigWidget
|
2013-03-27 17:17:24 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit DebuggerRunConfigWidget(DebuggerRunConfigurationAspect *aspect);
|
|
|
|
|
QString displayName() const { return tr("Debugger Settings"); }
|
|
|
|
|
|
2014-03-26 11:23:04 +01:00
|
|
|
void showEvent(QShowEvent *event);
|
|
|
|
|
void update();
|
|
|
|
|
|
2013-03-27 17:17:24 +01:00
|
|
|
private slots:
|
2014-03-26 11:15:09 +01:00
|
|
|
void useCppDebuggerClicked(bool on);
|
2013-03-27 17:17:24 +01:00
|
|
|
void useQmlDebuggerToggled(bool on);
|
2014-03-26 11:15:09 +01:00
|
|
|
void useQmlDebuggerClicked(bool on);
|
2013-03-27 17:17:24 +01:00
|
|
|
void qmlDebugServerPortChanged(int port);
|
|
|
|
|
void useMultiProcessToggled(bool on);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
DebuggerRunConfigurationAspect *m_aspect; // not owned
|
|
|
|
|
|
|
|
|
|
QCheckBox *m_useCppDebugger;
|
|
|
|
|
QCheckBox *m_useQmlDebugger;
|
|
|
|
|
QSpinBox *m_debugServerPort;
|
|
|
|
|
QLabel *m_debugServerPortLabel;
|
|
|
|
|
QLabel *m_qmlDebuggerInfoLabel;
|
|
|
|
|
QCheckBox *m_useMultiProcess;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
DebuggerRunConfigWidget::DebuggerRunConfigWidget(DebuggerRunConfigurationAspect *aspect)
|
|
|
|
|
{
|
|
|
|
|
m_aspect = aspect;
|
|
|
|
|
|
|
|
|
|
m_useCppDebugger = new QCheckBox(tr("Enable C++"), this);
|
|
|
|
|
m_useQmlDebugger = new QCheckBox(tr("Enable QML"), this);
|
|
|
|
|
|
|
|
|
|
m_debugServerPort = new QSpinBox(this);
|
|
|
|
|
m_debugServerPort->setMinimum(1);
|
|
|
|
|
m_debugServerPort->setMaximum(65535);
|
|
|
|
|
|
|
|
|
|
m_debugServerPortLabel = new QLabel(tr("Debug port:"), this);
|
|
|
|
|
m_debugServerPortLabel->setBuddy(m_debugServerPort);
|
|
|
|
|
|
|
|
|
|
m_qmlDebuggerInfoLabel = new QLabel(tr("<a href=\""
|
|
|
|
|
"qthelp://org.qt-project.qtcreator/doc/creator-debugging-qml.html"
|
|
|
|
|
"\">What are the prerequisites?</a>"));
|
|
|
|
|
|
|
|
|
|
static const QByteArray env = qgetenv("QTC_DEBUGGER_MULTIPROCESS");
|
|
|
|
|
m_useMultiProcess =
|
|
|
|
|
new QCheckBox(tr("Enable Debugging of Subprocesses"), this);
|
|
|
|
|
m_useMultiProcess->setVisible(env.toInt());
|
|
|
|
|
|
|
|
|
|
connect(m_qmlDebuggerInfoLabel, SIGNAL(linkActivated(QString)),
|
|
|
|
|
Core::HelpManager::instance(), SLOT(handleHelpRequest(QString)));
|
2015-02-12 13:50:54 +01:00
|
|
|
connect(m_useQmlDebugger, &QAbstractButton::toggled,
|
|
|
|
|
this, &DebuggerRunConfigWidget::useQmlDebuggerToggled);
|
|
|
|
|
connect(m_useQmlDebugger, &QAbstractButton::clicked,
|
|
|
|
|
this, &DebuggerRunConfigWidget::useQmlDebuggerClicked);
|
|
|
|
|
connect(m_useCppDebugger, &QAbstractButton::clicked,
|
|
|
|
|
this, &DebuggerRunConfigWidget::useCppDebuggerClicked);
|
|
|
|
|
connect(m_debugServerPort, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
|
|
|
|
|
this, &DebuggerRunConfigWidget::qmlDebugServerPortChanged);
|
|
|
|
|
connect(m_useMultiProcess, &QAbstractButton::toggled,
|
|
|
|
|
this, &DebuggerRunConfigWidget::useMultiProcessToggled);
|
|
|
|
|
|
|
|
|
|
auto qmlLayout = new QHBoxLayout;
|
2013-03-27 17:17:24 +01:00
|
|
|
qmlLayout->setMargin(0);
|
|
|
|
|
qmlLayout->addWidget(m_useQmlDebugger);
|
|
|
|
|
qmlLayout->addWidget(m_debugServerPortLabel);
|
|
|
|
|
qmlLayout->addWidget(m_debugServerPort);
|
|
|
|
|
qmlLayout->addWidget(m_qmlDebuggerInfoLabel);
|
|
|
|
|
qmlLayout->addStretch();
|
|
|
|
|
|
2015-02-12 13:50:54 +01:00
|
|
|
auto layout = new QVBoxLayout;
|
2013-03-27 17:17:24 +01:00
|
|
|
layout->setMargin(0);
|
|
|
|
|
layout->addWidget(m_useCppDebugger);
|
|
|
|
|
layout->addLayout(qmlLayout);
|
|
|
|
|
layout->addWidget(m_useMultiProcess);
|
|
|
|
|
setLayout(layout);
|
2014-03-26 11:23:04 +01:00
|
|
|
}
|
2013-04-09 15:33:52 +02:00
|
|
|
|
2014-03-26 11:23:04 +01:00
|
|
|
void DebuggerRunConfigWidget::showEvent(QShowEvent *event)
|
|
|
|
|
{
|
|
|
|
|
// Update the UI on every show() because the state of
|
|
|
|
|
// QML debugger language is hard to track.
|
|
|
|
|
//
|
|
|
|
|
// !event->spontaneous makes sure we ignore e.g. global windows events,
|
|
|
|
|
// when Qt Creator itself is minimized/maximized.
|
|
|
|
|
if (!event->spontaneous())
|
|
|
|
|
update();
|
|
|
|
|
|
|
|
|
|
RunConfigWidget::showEvent(event);
|
2013-04-09 15:33:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigWidget::update()
|
|
|
|
|
{
|
|
|
|
|
m_useCppDebugger->setChecked(m_aspect->useCppDebugger());
|
|
|
|
|
m_useQmlDebugger->setChecked(m_aspect->useQmlDebugger());
|
|
|
|
|
|
|
|
|
|
m_debugServerPort->setValue(m_aspect->qmlDebugServerPort());
|
|
|
|
|
|
|
|
|
|
m_useMultiProcess->setChecked(m_aspect->useMultiProcess());
|
|
|
|
|
|
2013-04-24 11:21:53 +02:00
|
|
|
m_debugServerPortLabel->setVisible(!m_aspect->isQmlDebuggingSpinboxSuppressed());
|
|
|
|
|
m_debugServerPort->setVisible(!m_aspect->isQmlDebuggingSpinboxSuppressed());
|
2013-03-27 17:17:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigWidget::qmlDebugServerPortChanged(int port)
|
|
|
|
|
{
|
|
|
|
|
m_aspect->m_qmlDebugServerPort = port;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-26 11:15:09 +01:00
|
|
|
void DebuggerRunConfigWidget::useCppDebuggerClicked(bool on)
|
2013-03-27 17:17:24 +01:00
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
m_aspect->m_useCppDebugger = on
|
|
|
|
|
? DebuggerRunConfigurationAspect::EnabledLanguage
|
|
|
|
|
: DebuggerRunConfigurationAspect::DisabledLanguage;
|
2014-09-01 16:25:20 +02:00
|
|
|
if (!on && !m_useQmlDebugger->isChecked()) {
|
2013-03-27 17:17:24 +01:00
|
|
|
m_useQmlDebugger->setChecked(true);
|
2014-09-01 16:25:20 +02:00
|
|
|
useQmlDebuggerClicked(true);
|
|
|
|
|
}
|
2013-03-27 17:17:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigWidget::useQmlDebuggerToggled(bool on)
|
|
|
|
|
{
|
|
|
|
|
m_debugServerPort->setEnabled(on);
|
|
|
|
|
m_debugServerPortLabel->setEnabled(on);
|
2014-03-26 11:15:09 +01:00
|
|
|
}
|
2013-03-27 17:17:24 +01:00
|
|
|
|
2014-03-26 11:15:09 +01:00
|
|
|
void DebuggerRunConfigWidget::useQmlDebuggerClicked(bool on)
|
|
|
|
|
{
|
2013-03-27 17:17:24 +01:00
|
|
|
m_aspect->m_useQmlDebugger = on
|
2013-06-07 09:20:48 +02:00
|
|
|
? DebuggerRunConfigurationAspect::EnabledLanguage
|
|
|
|
|
: DebuggerRunConfigurationAspect::DisabledLanguage;
|
2014-09-01 16:25:20 +02:00
|
|
|
if (!on && !m_useCppDebugger->isChecked()) {
|
2013-03-27 17:17:24 +01:00
|
|
|
m_useCppDebugger->setChecked(true);
|
2014-09-01 16:25:20 +02:00
|
|
|
useCppDebuggerClicked(true);
|
|
|
|
|
}
|
2013-03-27 17:17:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigWidget::useMultiProcessToggled(bool on)
|
|
|
|
|
{
|
|
|
|
|
m_aspect->m_useMultiProcess = on;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\class Debugger::DebuggerRunConfigurationAspect
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(
|
2014-03-26 16:49:40 +01:00
|
|
|
RunConfiguration *rc) :
|
2013-08-12 17:04:10 +02:00
|
|
|
IRunConfigurationAspect(rc),
|
2013-06-07 09:20:48 +02:00
|
|
|
m_useCppDebugger(AutoEnabledLanguage),
|
|
|
|
|
m_useQmlDebugger(AutoEnabledLanguage),
|
2013-03-27 13:03:15 +01:00
|
|
|
m_qmlDebugServerPort(Constants::QML_DEFAULT_DEBUG_SERVER_PORT),
|
2013-04-05 13:20:52 +02:00
|
|
|
m_useMultiProcess(false)
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
2013-08-12 17:04:10 +02:00
|
|
|
setId("DebuggerAspect");
|
|
|
|
|
setDisplayName(tr("Debugger settings"));
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigurationAspect::setUseQmlDebugger(bool value)
|
|
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
m_useQmlDebugger = value ? EnabledLanguage : DisabledLanguage;
|
2014-12-12 16:41:29 +01:00
|
|
|
runConfiguration()->requestRunActionsUpdate();
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigurationAspect::setUseCppDebugger(bool value)
|
|
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
m_useCppDebugger = value ? EnabledLanguage : DisabledLanguage;
|
2014-12-12 16:41:29 +01:00
|
|
|
runConfiguration()->requestRunActionsUpdate();
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DebuggerRunConfigurationAspect::useCppDebugger() const
|
|
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
if (m_useCppDebugger == DebuggerRunConfigurationAspect::AutoEnabledLanguage)
|
2013-08-12 17:04:10 +02:00
|
|
|
return runConfiguration()->target()->project()->projectLanguages().contains(
|
2013-06-07 09:20:48 +02:00
|
|
|
ProjectExplorer::Constants::LANG_CXX);
|
|
|
|
|
return m_useCppDebugger == DebuggerRunConfigurationAspect::EnabledLanguage;
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DebuggerRunConfigurationAspect::useQmlDebugger() const
|
|
|
|
|
{
|
2014-02-07 11:54:18 +01:00
|
|
|
if (m_useQmlDebugger == DebuggerRunConfigurationAspect::AutoEnabledLanguage) {
|
2014-03-26 11:23:04 +01:00
|
|
|
//
|
|
|
|
|
// Try to find a build step (qmake) to check whether qml debugging is enabled there
|
|
|
|
|
// (Using the Qt metatype system to avoid a hard qt4projectmanager dependency)
|
|
|
|
|
//
|
|
|
|
|
if (BuildConfiguration *bc = runConfiguration()->target()->activeBuildConfiguration()) {
|
|
|
|
|
if (BuildStepList *bsl = bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD)) {
|
|
|
|
|
foreach (BuildStep *step, bsl->steps()) {
|
|
|
|
|
QVariant linkProperty = step->property("linkQmlDebuggingLibrary");
|
|
|
|
|
if (linkProperty.isValid() && linkProperty.canConvert(QVariant::Bool))
|
|
|
|
|
return linkProperty.toBool();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-07 11:54:18 +01:00
|
|
|
const Core::Context languages = runConfiguration()->target()->project()->projectLanguages();
|
|
|
|
|
return languages.contains(ProjectExplorer::Constants::LANG_QMLJS)
|
|
|
|
|
&& !languages.contains(ProjectExplorer::Constants::LANG_CXX);
|
|
|
|
|
}
|
2013-06-07 09:20:48 +02:00
|
|
|
return m_useQmlDebugger == DebuggerRunConfigurationAspect::EnabledLanguage;
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint DebuggerRunConfigurationAspect::qmlDebugServerPort() const
|
|
|
|
|
{
|
|
|
|
|
return m_qmlDebugServerPort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigurationAspect::setQmllDebugServerPort(uint port)
|
|
|
|
|
{
|
|
|
|
|
m_qmlDebugServerPort = port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DebuggerRunConfigurationAspect::useMultiProcess() const
|
|
|
|
|
{
|
|
|
|
|
return m_useMultiProcess;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigurationAspect::setUseMultiProcess(bool value)
|
|
|
|
|
{
|
|
|
|
|
m_useMultiProcess = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DebuggerRunConfigurationAspect::isQmlDebuggingSpinboxSuppressed() const
|
|
|
|
|
{
|
2014-03-26 16:49:40 +01:00
|
|
|
Kit *k = runConfiguration()->target()->kit();
|
|
|
|
|
IDevice::ConstPtr dev = DeviceKitInformation::device(k);
|
2013-04-05 13:20:52 +02:00
|
|
|
if (dev.isNull())
|
|
|
|
|
return false;
|
2013-04-18 09:31:22 +02:00
|
|
|
return dev->canAutoDetectPorts();
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-12 17:05:52 +02:00
|
|
|
void DebuggerRunConfigurationAspect::toMap(QVariantMap &map) const
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
map.insert(QLatin1String(USE_CPP_DEBUGGER_KEY), m_useCppDebugger == EnabledLanguage);
|
|
|
|
|
map.insert(QLatin1String(USE_CPP_DEBUGGER_AUTO_KEY), m_useCppDebugger == AutoEnabledLanguage);
|
|
|
|
|
map.insert(QLatin1String(USE_QML_DEBUGGER_KEY), m_useQmlDebugger == EnabledLanguage);
|
|
|
|
|
map.insert(QLatin1String(USE_QML_DEBUGGER_AUTO_KEY), m_useQmlDebugger == AutoEnabledLanguage);
|
2013-03-27 13:03:15 +01:00
|
|
|
map.insert(QLatin1String(QML_DEBUG_SERVER_PORT_KEY), m_qmlDebugServerPort);
|
|
|
|
|
map.insert(QLatin1String(USE_MULTIPROCESS_KEY), m_useMultiProcess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DebuggerRunConfigurationAspect::fromMap(const QVariantMap &map)
|
|
|
|
|
{
|
2013-06-07 09:20:48 +02:00
|
|
|
if (map.value(QLatin1String(USE_CPP_DEBUGGER_AUTO_KEY), false).toBool()) {
|
|
|
|
|
m_useCppDebugger = AutoEnabledLanguage;
|
|
|
|
|
} else {
|
|
|
|
|
bool useCpp = map.value(QLatin1String(USE_CPP_DEBUGGER_KEY), false).toBool();
|
|
|
|
|
m_useCppDebugger = useCpp ? EnabledLanguage : DisabledLanguage;
|
|
|
|
|
}
|
2013-03-27 13:03:15 +01:00
|
|
|
if (map.value(QLatin1String(USE_QML_DEBUGGER_AUTO_KEY), false).toBool()) {
|
2013-06-07 09:20:48 +02:00
|
|
|
m_useQmlDebugger = AutoEnabledLanguage;
|
2013-03-27 13:03:15 +01:00
|
|
|
} else {
|
|
|
|
|
bool useQml = map.value(QLatin1String(USE_QML_DEBUGGER_KEY), false).toBool();
|
2013-06-07 09:20:48 +02:00
|
|
|
m_useQmlDebugger = useQml ? EnabledLanguage : DisabledLanguage;
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
m_useMultiProcess = map.value(QLatin1String(USE_MULTIPROCESS_KEY), false).toBool();
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-12 17:04:10 +02:00
|
|
|
DebuggerRunConfigurationAspect *DebuggerRunConfigurationAspect::create
|
2014-03-26 16:49:40 +01:00
|
|
|
(RunConfiguration *runConfiguration) const
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
2013-08-12 17:04:10 +02:00
|
|
|
return new DebuggerRunConfigurationAspect(runConfiguration);
|
2013-03-27 13:03:15 +01:00
|
|
|
}
|
|
|
|
|
|
2014-03-26 16:49:40 +01:00
|
|
|
RunConfigWidget *DebuggerRunConfigurationAspect::createConfigurationWidget()
|
2013-03-27 17:17:24 +01:00
|
|
|
{
|
2013-04-09 15:33:52 +02:00
|
|
|
return new Internal::DebuggerRunConfigWidget(this);
|
2013-03-27 17:17:24 +01:00
|
|
|
}
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
} // namespace Debugger
|
2013-03-27 17:17:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "debuggerrunconfigurationaspect.moc"
|