diff options
author | Lasse Holmstedt <[email protected]> | 2010-09-08 13:31:12 +0200 |
---|---|---|
committer | Lasse Holmstedt <[email protected]> | 2010-09-08 14:55:07 +0200 |
commit | f1ff2a01cc7214ea971b4d33165a4e28aefab8f2 (patch) | |
tree | a417f50e45e53cc2577f920fd3333677f2772ece /src/plugins/debugger/debuggerrunner.cpp | |
parent | 5fcc438d6b077a75d553fa60845efcfe035ef538 (diff) |
QML Debugger: Mangle shadow build filenames
Without doing some magic for the filenames, we go to shadow build files
instead of the real ones, resulting in confusion. The user should never
see the shadow build files while debugging.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index e8d3dfc909d..310e8ce36fc 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -156,6 +156,10 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu sp.qmlServerAddress = QLatin1String("127.0.0.1"); sp.qmlServerPort = runConfiguration->qmlDebugServerPort(); + sp.projectDir = runConfiguration->target()->project()->projectDirectory(); + if (runConfiguration->target()->activeBuildConfiguration()) + sp.projectBuildDir = runConfiguration->target()->activeBuildConfiguration()->buildDirectory(); + sp.environment << QString(Constants::E_QML_DEBUG_SERVER_PORT) + QLatin1Char('=') + QString::number(sp.qmlServerPort); } |