debugger: reorganize starting from the command line

This commit is contained in:
hjk
2011-02-08 13:48:04 +01:00
parent 32f6dd5395
commit 04514ed459
3 changed files with 156 additions and 187 deletions

View File

@@ -276,8 +276,8 @@ bool startCreatorAsDebugger(bool asClient, QString *errorMessage)
// Send to running Creator: Unstable with directly linked CDB engine.
if (asClient)
args << QLatin1String("-client");
args << QLatin1String("-debug") << QString::number(argProcessId)
<< QLatin1String("-wincrashevent") << QString::number(argWinCrashEvent);
args << QLatin1String("-wincrashevent")
<< QString::fromLatin1("%1:%2").arg(argWinCrashEvent).arg(argProcessId);
if (debug)
qDebug() << binary << args;
QProcess p;