debugger: add a 'break at main' checkbox in the 'start and debug external' dialog

This commit is contained in:
hjk
2009-06-12 12:57:22 +02:00
parent 94b1b1fd7b
commit b052ce2c21
8 changed files with 57 additions and 24 deletions

View File

@@ -1202,15 +1202,17 @@ void DebuggerPlugin::startExternalApplication()
configValue(_("LastExternalExecutableFile")).toString());
dlg.setExecutableArguments(
configValue(_("LastExternalExecutableArguments")).toString());
if (dlg.exec() != QDialog::Accepted) {
if (dlg.exec() != QDialog::Accepted)
return;
}
setConfigValue(_("LastExternalExecutableFile"),
dlg.executableFile());
setConfigValue(_("LastExternalExecutableArguments"),
dlg.executableArguments());
sp->executable = dlg.executableFile();
sp->processArgs = dlg.executableArguments().split(QLatin1Char(' '));
if (dlg.breakAtMain())
m_manager->breakByFunctionMain();
QSharedPointer<RunConfiguration> rc = activeRunConfiguration();
if (RunControl *runControl = m_debuggerRunner