Commit 1f380798 authored by hjk's avatar hjk

Debugger: Allow terminals for sessions started from command line

Change-Id: I43751fa90e54cd1d93b97822568d21c90118fb23
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 2f819ec8
......@@ -22,8 +22,7 @@
\"Description\" : \"Attach to local process\"
},
{
\"Name\" : \"-debug\",
\"Parameter\" : \"executable\",
\"Name\" : \"-debug <executable>[,kit=<kit>][,terminal={0,1}]\",
\"Description\" : \"Start and debug executable\"
},
{
......
......@@ -1116,7 +1116,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
{
const QString &option = *it;
// '-debug <pid>'
// '-debug <exe>[,server=<server:port>][,core=<core>][,kit=<kit>]'
// '-debug <exe>[,server=<server:port>][,core=<core>][,kit=<kit>][,terminal={0,1}]'
if (*it == _("-debug")) {
++it;
if (it == cend) {
......@@ -1159,6 +1159,8 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
rp.coreFile = val;
rp.displayName = tr("Core file \"%1\"").arg(rp.coreFile);
rp.startMessage = tr("Attaching to core file %1.").arg(rp.coreFile);
} else if (key == QLatin1String("terminal")) {
rp.useTerminal = bool(val.toInt());
} else if (key == QLatin1String("kit")) {
kit = KitManager::find(Id::fromString(val));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment