diff --git a/src/plugins/valgrind/valgrindruncontrolfactory.cpp b/src/plugins/valgrind/valgrindruncontrolfactory.cpp index 32f214b2ece..24da9893f0f 100644 --- a/src/plugins/valgrind/valgrindruncontrolfactory.cpp +++ b/src/plugins/valgrind/valgrindruncontrolfactory.cpp @@ -102,6 +102,8 @@ RunControl *ValgrindRunControlFactory::create(RunConfiguration *runConfiguration sp.debuggee = rc2->remoteExecutableFilePath(); sp.connParams = DeviceKitInformation::device(rc2->target()->kit())->sshParameters(); sp.debuggeeArgs = rc2->arguments().join(QLatin1Char(' ')); + sp.workingDirectory = rc2->workingDirectory(); + sp.environment = rc2->environment(); } else { QTC_ASSERT(false, return 0); }