diff options
| author | David Schulz <david.schulz@digia.com> | 2013-03-04 00:42:36 -0800 |
|---|---|---|
| committer | David Schulz <david.schulz@digia.com> | 2013-03-06 07:41:50 +0100 |
| commit | e03f7da72b8e47027415a9631976eea88765a53e (patch) | |
| tree | 6320b8db7bbc8fde474af26e7a066e4137760656 /src/plugins/debugger/commonoptionspage.cpp | |
| parent | 072f93bc3075b3824531e7d964381ecc38af643a (diff) | |
| download | qt-creator-e03f7da72b8e47027415a9631976eea88765a53e.tar.gz | |
CDB: Warn on release build.
Task-number: QTCREATORBUG-8820
Change-Id: If48429fc80d3b928cba4622ff6b168dca8289500
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/commonoptionspage.cpp')
| -rw-r--r-- | src/plugins/debugger/commonoptionspage.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp index 512025ec2b..5de162e0ad 100644 --- a/src/plugins/debugger/commonoptionspage.cpp +++ b/src/plugins/debugger/commonoptionspage.cpp @@ -93,6 +93,11 @@ CommonOptionsPageWidget::CommonOptionsPageWidget checkBoxRegisterForPostMortem->setToolTip(tr("Register Qt Creator for debugging crashed applications.")); checkBoxRegisterForPostMortem->setText(tr("Use Qt Creator for post-mortem debugging")); + checkBoxWarnOnReleaseBuilds = new QCheckBox(behaviorBox); + checkBoxWarnOnReleaseBuilds->setText(tr("Warn when debugging \"Release\" builds")); + checkBoxWarnOnReleaseBuilds->setToolTip(tr("Show a warning when starting the debugger " + "on a binary with insufficient debug information.")); + labelMaximalStackDepth = new QLabel(tr("Maximum stack depth:"), behaviorBox); spinBoxMaximalStackDepth = new QSpinBox(behaviorBox); @@ -127,6 +132,7 @@ CommonOptionsPageWidget::CommonOptionsPageWidget gridLayout->addWidget(checkBoxCloseBuffersOnExit, 2, 0, 1, 1); gridLayout->addWidget(checkBoxBringToForegroundOnInterrrupt, 3, 0, 1, 1); gridLayout->addWidget(checkBoxBreakpointsFullPath, 4, 0, 1, 1); + gridLayout->addWidget(checkBoxWarnOnReleaseBuilds, 5, 0, 1, 1); gridLayout->addLayout(horizontalLayout, 6, 0, 1, 2); gridLayout->addWidget(checkBoxFontSizeFollowsEditor, 0, 1, 1, 1); @@ -160,6 +166,8 @@ CommonOptionsPageWidget::CommonOptionsPageWidget checkBoxBringToForegroundOnInterrrupt); m_group->insert(dc->action(ShowQmlObjectTree), checkBoxShowQmlObjectTree); + m_group->insert(dc->action(WarnOnReleaseBuilds), + checkBoxWarnOnReleaseBuilds); m_group->insert(dc->action(FontSizeFollowsEditor), checkBoxFontSizeFollowsEditor); m_group->insert(dc->action(AutoDerefPointers), 0); @@ -207,7 +215,8 @@ QString CommonOptionsPageWidget::searchKeyWords() const << sep << checkBoxSwitchModeOnExit->text() << sep << labelMaximalStackDepth->text() << sep << checkBoxBringToForegroundOnInterrrupt->text() - << sep << checkBoxShowQmlObjectTree->text(); + << sep << checkBoxShowQmlObjectTree->text() + << sep << checkBoxWarnOnReleaseBuilds->text(); if (Utils::HostOsInfo::isWindowsHost()) stream << sep << checkBoxRegisterForPostMortem->text(); |
