Skip to content

Commit 88dd188

Browse files
committed
Fix bug in sourcemapping
1 parent 3ee90f1 commit 88dd188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDebug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class PhpDebugSession extends vscode.DebugSession {
221221
let serverFileUri: string;
222222
if (this._args.serverSourceRoot && this._args.localSourceRoot) {
223223
// get the part of the path that is relative to the source root
224-
const urlRelativeToSourceRoot = urlRelative(this._args.localSourceRoot, localPath);
224+
const urlRelativeToSourceRoot = urlRelative(this._args.localSourceRoot, localFileUri);
225225
// resolve from the server source root
226226
serverFileUri = url.resolve(this._args.serverSourceRoot, urlRelativeToSourceRoot);
227227
} else {

0 commit comments

Comments
 (0)