2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2009-03-18 10:04:02 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2009-03-18 10:04:02 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2009-03-18 10:04:02 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2009-03-18 10:04:02 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2009-03-18 10:04:02 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2009-03-18 10:04:02 +01:00
|
|
|
|
2012-06-28 15:44:19 +02:00
|
|
|
#include <QObject>
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QHash>
|
|
|
|
|
#include <QMap>
|
2014-09-07 23:24:10 +03:00
|
|
|
#include <QRegExp>
|
2014-09-18 14:33:32 +02:00
|
|
|
#include <QVector>
|
2009-03-26 17:27:44 +01:00
|
|
|
|
2013-09-04 18:39:43 +02:00
|
|
|
namespace Utils { class SavedAction; }
|
2010-03-18 10:59:06 +01:00
|
|
|
|
2009-03-26 17:27:44 +01:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
2009-03-26 15:56:16 +01:00
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
using SourcePathMap = QMap<QString, QString>;
|
|
|
|
|
using SourcePathRegExpMap = QVector<QPair<QRegExp, QString> >;
|
2014-09-11 22:22:51 +03:00
|
|
|
|
2011-03-04 16:21:57 +01:00
|
|
|
// Global debugger options that are not stored as saved action.
|
|
|
|
|
class GlobalDebuggerOptions
|
|
|
|
|
{
|
|
|
|
|
public:
|
2013-09-04 18:39:43 +02:00
|
|
|
void toSettings() const;
|
|
|
|
|
void fromSettings();
|
2011-03-04 16:21:57 +01:00
|
|
|
|
|
|
|
|
SourcePathMap sourcePathMap;
|
2014-09-07 23:24:10 +03:00
|
|
|
SourcePathRegExpMap sourcePathRegExpMap;
|
2011-03-04 16:21:57 +01:00
|
|
|
};
|
|
|
|
|
|
2009-03-19 15:44:26 +01:00
|
|
|
class DebuggerSettings : public QObject
|
2009-03-19 09:32:09 +01:00
|
|
|
{
|
2010-11-10 16:33:11 +01:00
|
|
|
Q_OBJECT // For tr().
|
2011-09-22 09:30:50 +02:00
|
|
|
|
2009-03-19 09:32:09 +01:00
|
|
|
public:
|
2013-09-04 18:39:43 +02:00
|
|
|
explicit DebuggerSettings();
|
2018-05-07 15:06:53 +02:00
|
|
|
~DebuggerSettings() override;
|
2009-06-03 13:53:45 +02:00
|
|
|
|
2009-10-05 11:06:05 +02:00
|
|
|
void insertItem(int code, Utils::SavedAction *item);
|
|
|
|
|
Utils::SavedAction *item(int code) const;
|
2009-03-19 09:32:09 +01:00
|
|
|
|
2009-04-09 16:51:13 +02:00
|
|
|
QString dump() const;
|
2009-03-19 09:32:09 +01:00
|
|
|
|
2010-11-10 16:33:11 +01:00
|
|
|
void readSettings();
|
|
|
|
|
void writeSettings() const;
|
2009-03-19 09:32:09 +01:00
|
|
|
|
|
|
|
|
private:
|
2010-01-29 21:33:57 +01:00
|
|
|
QHash<int, Utils::SavedAction *> m_items;
|
2009-03-19 09:32:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
2009-03-19 15:44:26 +01:00
|
|
|
enum DebuggerActionCode
|
2009-03-18 10:04:02 +01:00
|
|
|
{
|
|
|
|
|
// General
|
|
|
|
|
SettingsDialog,
|
2009-05-05 10:14:35 +02:00
|
|
|
UseAlternatingRowColors,
|
2011-04-01 12:01:14 +02:00
|
|
|
FontSizeFollowsEditor,
|
2009-08-13 14:33:02 +02:00
|
|
|
UseMessageBoxForSignals,
|
2009-03-24 15:01:35 +01:00
|
|
|
AutoQuit,
|
2009-03-18 10:04:02 +01:00
|
|
|
LockView,
|
2009-06-19 12:04:21 +02:00
|
|
|
LogTimeStamps,
|
2009-09-29 11:13:19 +02:00
|
|
|
OperateByInstruction,
|
2014-11-17 10:19:18 +01:00
|
|
|
CloseSourceBuffersOnExit,
|
|
|
|
|
CloseMemoryBuffersOnExit,
|
2010-10-08 17:44:11 +02:00
|
|
|
SwitchModeOnExit,
|
2012-06-10 01:20:30 +04:00
|
|
|
BreakpointsFullPathByDefault,
|
2012-03-13 13:50:05 +01:00
|
|
|
RaiseOnInterrupt,
|
2014-05-02 12:08:44 +02:00
|
|
|
StationaryEditorWhileStepping,
|
2009-03-18 10:04:02 +01:00
|
|
|
|
2009-08-12 10:51:25 +02:00
|
|
|
UseDebuggingHelpers,
|
2009-10-16 16:26:28 +02:00
|
|
|
|
|
|
|
|
UseCodeModel,
|
2010-12-20 17:39:51 +01:00
|
|
|
ShowThreadNames,
|
2010-01-29 21:33:57 +01:00
|
|
|
|
2009-10-01 11:22:44 +02:00
|
|
|
UseToolTipsInMainEditor,
|
|
|
|
|
UseToolTipsInLocalsView,
|
|
|
|
|
UseToolTipsInBreakpointsView,
|
|
|
|
|
UseToolTipsInStackView,
|
|
|
|
|
UseAddressInBreakpointsView,
|
|
|
|
|
UseAddressInStackView,
|
|
|
|
|
|
2010-03-25 16:54:23 +01:00
|
|
|
RegisterForPostMortem,
|
2014-06-03 11:34:52 +02:00
|
|
|
AlwaysAdjustColumnWidths,
|
|
|
|
|
|
2014-06-23 16:33:19 +02:00
|
|
|
ExtraDumperFile, // For loading a file. Recommended.
|
|
|
|
|
ExtraDumperCommands, // To modify an existing setup.
|
2010-03-25 16:54:23 +01:00
|
|
|
|
2013-05-22 00:49:51 -07:00
|
|
|
// Cdb
|
|
|
|
|
CdbAdditionalArguments,
|
|
|
|
|
CdbSymbolPaths,
|
|
|
|
|
CdbSourcePaths,
|
|
|
|
|
CdbBreakEvents,
|
|
|
|
|
CdbBreakOnCrtDbgReport,
|
|
|
|
|
UseCdbConsole,
|
|
|
|
|
CdbBreakPointCorrection,
|
2016-12-20 10:02:08 +01:00
|
|
|
CdbUsePythonDumper,
|
2013-05-22 00:49:51 -07:00
|
|
|
IgnoreFirstChanceAccessViolation,
|
|
|
|
|
|
2009-03-18 10:04:02 +01:00
|
|
|
// Gdb
|
2010-12-21 11:52:21 +01:00
|
|
|
LoadGdbInit,
|
2013-03-21 17:32:34 +01:00
|
|
|
LoadGdbDumpers,
|
2011-11-01 17:56:32 +01:00
|
|
|
GdbStartupCommands,
|
2012-10-23 10:51:32 +02:00
|
|
|
GdbPostAttachCommands,
|
2009-12-09 15:23:49 +01:00
|
|
|
GdbWatchdogTimeout,
|
2011-09-22 09:30:50 +02:00
|
|
|
AutoEnrichParameters,
|
2011-11-29 12:20:06 +01:00
|
|
|
UseDynamicType,
|
2011-02-03 16:49:28 +01:00
|
|
|
TargetAsync,
|
2012-06-01 17:21:39 +02:00
|
|
|
WarnOnReleaseBuilds,
|
2012-11-06 15:21:42 +01:00
|
|
|
MultiInferior,
|
2012-11-09 19:11:19 +01:00
|
|
|
IntelFlavor,
|
2013-03-21 18:00:18 +01:00
|
|
|
IdentifyDebugInfoPackages,
|
2009-03-18 10:04:02 +01:00
|
|
|
|
2009-04-02 15:06:24 +02:00
|
|
|
// Stack
|
|
|
|
|
MaximalStackDepth,
|
2009-04-06 17:27:15 +02:00
|
|
|
ExpandStack,
|
2010-03-29 18:44:02 +02:00
|
|
|
CreateFullBacktrace,
|
2009-04-02 15:06:24 +02:00
|
|
|
|
2009-03-18 10:04:02 +01:00
|
|
|
// Watchers & Locals
|
2009-11-25 08:35:02 +01:00
|
|
|
ShowStdNamespace,
|
|
|
|
|
ShowQtNamespace,
|
2015-12-16 14:13:44 +01:00
|
|
|
ShowQObjectNames,
|
2010-09-23 11:15:56 +02:00
|
|
|
SortStructMembers,
|
2010-10-08 17:44:11 +02:00
|
|
|
AutoDerefPointers,
|
2012-11-11 00:32:33 +01:00
|
|
|
MaximalStringLength,
|
2014-05-16 00:18:17 +02:00
|
|
|
DisplayStringLimit,
|
2009-03-23 12:28:02 +01:00
|
|
|
|
2009-03-18 10:04:02 +01:00
|
|
|
// Running
|
2009-03-19 09:32:09 +01:00
|
|
|
SkipKnownFrames,
|
2009-05-25 17:19:42 +02:00
|
|
|
EnableReverseDebugging,
|
2009-03-18 10:04:02 +01:00
|
|
|
|
|
|
|
|
// Breakpoints
|
|
|
|
|
SynchronizeBreakpoints,
|
|
|
|
|
AllPluginBreakpoints,
|
|
|
|
|
SelectedPluginBreakpoints,
|
2010-09-21 17:02:41 +02:00
|
|
|
AdjustBreakpointLocations,
|
2009-03-18 10:04:02 +01:00
|
|
|
NoPluginBreakpoints,
|
|
|
|
|
SelectedPluginBreakpointsPattern,
|
2010-02-11 17:29:10 +01:00
|
|
|
BreakOnThrow,
|
2011-03-16 18:48:14 +01:00
|
|
|
BreakOnCatch,
|
2011-05-30 16:01:50 +02:00
|
|
|
BreakOnWarning,
|
2011-07-13 16:52:28 +02:00
|
|
|
BreakOnFatal,
|
2012-05-08 18:01:28 +03:00
|
|
|
BreakOnAbort,
|
2011-03-16 18:48:14 +01:00
|
|
|
|
2012-04-18 14:20:54 +02:00
|
|
|
// QML Tools
|
|
|
|
|
ShowQmlObjectTree,
|
2015-03-16 14:48:13 +01:00
|
|
|
ShowAppOnTop
|
2009-03-19 09:32:09 +01:00
|
|
|
};
|
2009-03-18 10:04:02 +01:00
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Debugger
|