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
This commit is contained in:
Lasse Holmstedt
2010-09-08 13:31:12 +02:00
parent 5fcc438d6b
commit f1ff2a01cc
4 changed files with 108 additions and 4 deletions

View File

@@ -67,6 +67,8 @@ public:
void shutdownInferiorAsSlave();
void shutdownEngineAsSlave();
void pauseConnection();
void gotoLocation(const QString &fileName, int lineNumber, bool setMarker);
void gotoLocation(const StackFrame &frame, bool setMarker);
public slots:
void messageReceived(const QByteArray &message);
@@ -130,6 +132,12 @@ private:
void expandObject(const QByteArray &iname, quint64 objectId);
void sendPing();
bool isShadowBuildProject() const;
QString fromShadowBuildFilename(const QString &filename) const;
QString mangleFilenamePaths(const QString &filename, const QString &oldBasePath, const QString &newBasePath) const;
QString toShadowBuildFilename(const QString &filename) const;
QString qmlImportPath() const;
private:
friend class QmlCppEngine;