2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2019-09-30 14:00:58 +02:00
|
|
|
#include <projectexplorer/runconfigurationaspects.h>
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
|
|
|
|
class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
|
2018-09-13 15:48:16 +02:00
|
|
|
: public ProjectExplorer::GlobalOrProjectAspect
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2018-09-12 11:48:32 +02:00
|
|
|
DebuggerRunConfigurationAspect(ProjectExplorer::Target *target);
|
2019-10-17 17:58:22 +02:00
|
|
|
~DebuggerRunConfigurationAspect();
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2023-08-23 16:11:48 +02:00
|
|
|
void fromMap(const Utils::Storage &map) override;
|
|
|
|
|
void toMap(Utils::Storage &map) const override;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
bool useCppDebugger() const;
|
|
|
|
|
bool useQmlDebugger() const;
|
|
|
|
|
void setUseQmlDebugger(bool value);
|
|
|
|
|
bool useMultiProcess() const;
|
|
|
|
|
void setUseMultiProcess(bool on);
|
2019-09-30 11:26:32 +02:00
|
|
|
QString overrideStartup() const;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2016-01-26 14:09:13 +01:00
|
|
|
int portsUsedByDebugger() const;
|
|
|
|
|
|
2022-04-08 11:35:54 +02:00
|
|
|
struct Data : BaseAspect::Data
|
|
|
|
|
{
|
|
|
|
|
bool useCppDebugger;
|
|
|
|
|
bool useQmlDebugger;
|
|
|
|
|
bool useMultiProcess;
|
|
|
|
|
QString overrideStartup;
|
|
|
|
|
};
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
private:
|
2023-04-20 11:00:50 +02:00
|
|
|
Utils::TriStateAspect *m_cppAspect;
|
|
|
|
|
Utils::TriStateAspect *m_qmlAspect;
|
2020-09-18 12:11:40 +02:00
|
|
|
Utils::BoolAspect *m_multiProcessAspect;
|
|
|
|
|
Utils::StringAspect *m_overrideStartupAspect;
|
2018-09-12 09:31:45 +02:00
|
|
|
ProjectExplorer::Target *m_target;
|
2013-03-27 13:03:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|