Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
44add9f0
Commit
44add9f0
authored
Jan 15, 2009
by
hjk
Browse files
debugger: add configuariton to start the debugged process in a separate
terminal
parent
d15b7fff
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermanager.cpp
View file @
44add9f0
...
...
@@ -94,7 +94,7 @@ DebuggerSettings::DebuggerSettings()
m_skipKnownFrames
=
false
;
m_debugDumpers
=
false
;
m_useToolTips
=
false
;
m_useT
oolTips
=
false
;
m_useT
erminal
=
false
;
m_useCustomDumpers
=
true
;
}
...
...
src/plugins/debugger/debuggermanager.h
View file @
44add9f0
...
...
@@ -200,6 +200,7 @@ public:
bool
m_debugDumpers
;
bool
m_useFastStart
;
bool
m_useToolTips
;
bool
m_useTerminal
;
QString
m_scriptFile
;
};
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
44add9f0
...
...
@@ -277,6 +277,7 @@ QWidget *GdbOptionPage::createPage(QWidget *parent)
m_ui
.
checkBoxUseCustomDumpers
->
setChecked
(
m_settings
.
m_useCustomDumpers
);
m_ui
.
checkBoxFastStart
->
setChecked
(
m_settings
.
m_useFastStart
);
m_ui
.
checkBoxUseToolTips
->
setChecked
(
m_settings
.
m_useToolTips
);
m_ui
.
checkBoxUseTerminal
->
setChecked
(
m_settings
.
m_useTerminal
);
#ifndef QT_DEBUG
#if 0
...
...
@@ -315,6 +316,7 @@ void GdbOptionPage::apply()
m_settings
.
m_useCustomDumpers
=
m_ui
.
checkBoxUseCustomDumpers
->
isChecked
();
m_settings
.
m_useFastStart
=
m_ui
.
checkBoxFastStart
->
isChecked
();
m_settings
.
m_useToolTips
=
m_ui
.
checkBoxUseToolTips
->
isChecked
();
m_settings
.
m_useTerminal
=
m_ui
.
checkBoxUseTerminal
->
isChecked
();
*
m_plugin
->
m_manager
->
settings
()
=
m_settings
;
m_plugin
->
writeSettings
();
...
...
@@ -897,6 +899,7 @@ void DebuggerPlugin::writeSettings() const
s
->
setValue
(
"UseFastStart"
,
m
->
m_useFastStart
);
s
->
setValue
(
"UseToolTips"
,
m
->
m_useToolTips
);
s
->
setValue
(
"UseTerminal"
,
m
->
m_useTerminal
);
s
->
setValue
(
"UseCustomDumpers"
,
m
->
m_useCustomDumpers
);
s
->
setValue
(
"SkipKnowFrames"
,
m
->
m_skipKnownFrames
);
s
->
setValue
(
"DebugDumpers"
,
m
->
m_debugDumpers
);
...
...
@@ -930,6 +933,7 @@ void DebuggerPlugin::readSettings()
m
->
m_useCustomDumpers
=
s
->
value
(
"UseCustomDupers"
,
false
).
toBool
();
m
->
m_useFastStart
=
s
->
value
(
"UseFastStart"
,
false
).
toBool
();
m
->
m_useToolTips
=
s
->
value
(
"UseToolTips"
,
false
).
toBool
();
m
->
m_useTerminal
=
s
->
value
(
"UseTerminal"
,
false
).
toBool
();
s
->
endGroup
();
m_manager
->
mainWindow
()
->
restoreState
(
ba
);
...
...
src/plugins/debugger/gdboptionpage.ui
View file @
44add9f0
...
...
@@ -84,6 +84,16 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"checkBoxUseTerminal"
>
<property
name=
"toolTip"
>
<string>
Start debugged process in a separte terminal.
</string>
</property>
<property
name=
"text"
>
<string>
Start in terminal
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"checkBoxFastStart"
>
<property
name=
"toolTip"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment