summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index edb1d9986f..e4f90707f6 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1210,7 +1210,9 @@ void DebuggerPlugin::startExternalApplication()
setConfigValue(_("LastExternalExecutableArguments"),
dlg.executableArguments());
sp->executable = dlg.executableFile();
- sp->processArgs = dlg.executableArguments().split(QLatin1Char(' '));
+ if (!dlg.executableArguments().isEmpty())
+ sp->processArgs = dlg.executableArguments().split(QLatin1Char(' '));
+
if (dlg.breakAtMain())
m_manager->breakByFunctionMain();