debugger: add test code for multi-process debugging

Change-Id: I10a419a5dc538d4d42bab7f3f2070430db388eed
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-27 09:45:36 +02:00
committed by hjk
parent 7ae82b9f94
commit 66cf82a457
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include <QApplication>
#include <QProcess>
#include <QStringList>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QStringList args = app.arguments();
int n = args.size() == 1 ? 3 : args.at(0).toInt() - 1;
if (n >= 0) {
QProcess proc;
proc.startDetached(args.at(0), QStringList(QString::number(n)));
}
}

View File

@@ -0,0 +1,9 @@
TEMPLATE = app
TARGET = multi
DEPENDPATH += .
INCLUDEPATH += .
SOURCES += main.cpp
CONFIG += qt warn_on debug
OBJECTS_DIR = .obj/debug-shared
MOC_DIR = .moc/debug-shared