forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user