diff --git a/src/libs/utils/process_stub_win.c b/src/libs/utils/process_stub_win.c index 444c972..3b7f00a 100644 --- a/src/libs/utils/process_stub_win.c +++ b/src/libs/utils/process_stub_win.c @@ -51,6 +51,7 @@ static void doExit(int code) char buf[2]; _putws(sleepMsg); fgets(buf, 2, stdin); /* Minimal size to make it wait */ + Sleep(5000); exit(code); } @@ -111,7 +112,7 @@ enum { /* exit codes: 0 = ok, 1 = invocation error, 3 = internal error */ int main() { - int argc; + int i,argc; int creationFlags; wchar_t **argv; wchar_t *env = 0; @@ -123,7 +124,12 @@ int main() argv = CommandLineToArgvW(GetCommandLine(), &argc); if (argc != ArgCount) { + for (i = 0; i < argc; i++) + wprintf(L"%d/%d '%s'\n", i, ArgCount, argv[i]); + + fprintf(stderr, "This is an internal helper of Qt Creator. Do not run it manually.\n"); + Sleep(20000); return 1; } sleepMsg = argv[ArgMsg]; @@ -132,6 +138,7 @@ int main() if (!(qtcFd = _wfopen(argv[ArgSocket], L"w"))) { fprintf(stderr, "Cannot connect creator comm pipe %S: %s\n", argv[ArgSocket], strerror(errno)); + doExit(1); } diff --git a/src/plugins/projectexplorer/applicationlauncher_win.cpp b/src/plugins/projectexplorer/applicationlauncher_win.cpp index d383ec9..24343b2 100644 --- a/src/plugins/projectexplorer/applicationlauncher_win.cpp +++ b/src/plugins/projectexplorer/applicationlauncher_win.cpp @@ -87,6 +87,7 @@ void ApplicationLauncher::setEnvironment(const Utils::Environment &env) { d->m_winGuiProcess.setEnvironment(env); d->m_consoleProcess.setEnvironment(env); + qDebug()<< env.toStringList(); } void ApplicationLauncher::start(Mode mode, const QString &program, const QString &args)