diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp index 885e0f4d898..847f9a5a13b 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp @@ -108,6 +108,8 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat LocalQmlProfilerRunner::Configuration conf; conf.debuggee = runnable; + if (EnvironmentAspect *environment = runConfiguration->extraAspect()) + conf.debuggee.environment = environment->environment(); conf.socket = connection.analyzerSocket; conf.port = connection.analyzerPort;