Commit 66cf82a4 authored by hjk's avatar hjk Committed by hjk

debugger: add test code for multi-process debugging

Change-Id: I10a419a5dc538d4d42bab7f3f2070430db388eed
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 7ae82b9f
#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)));
}
}
TEMPLATE = app
TARGET = multi
DEPENDPATH += .
INCLUDEPATH += .
SOURCES += main.cpp
CONFIG += qt warn_on debug
OBJECTS_DIR = .obj/debug-shared
MOC_DIR = .moc/debug-shared
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