Skip to content

Commit 7ee218e

Browse files
fix: file paths from device logs should be correct with --path
When --path is used, the logs from the device are not mapped correctly to the local platform specific files. Fix the check if file exists in the project.
1 parent 52fb579 commit 7ee218e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/log-source-map-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService {
128128
const { dir, ext, name } = path.parse(sourceFile);
129129
const platformSpecificName = `${name}.${platform.toLowerCase()}`;
130130
const platformSpecificFile = path.format({ dir, ext, name: platformSpecificName });
131-
if (this.$fs.exists(platformSpecificFile)) {
131+
if (this.$fs.exists(path.join(projectData.projectDir, platformSpecificFile))) {
132132
this.originalFilesLocationCache[sourceFile] = platformSpecificFile;
133133
} else {
134134
this.originalFilesLocationCache[sourceFile] = sourceFile;

0 commit comments

Comments
 (0)