Skip to content

Commit 7ee7914

Browse files
authored
Handle source map path for new project url server (#2223)
1 parent b526468 commit 7ee7914

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/debugger/jsDebugConfigAdapter.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ export class JsDebugConfigAdapter {
2929
cdpProxyPort: number,
3030
sessionId: string,
3131
): any {
32-
return Object.assign({}, JsDebugConfigAdapter.getExistingExtraArgs(attachArgs), {
32+
const extraArgs: any = {};
33+
// Handle project file path from 0.76
34+
extraArgs.sourceMapPathOverrides = {
35+
"/[metro-project]/*": `${attachArgs.cwd}/*`,
36+
};
37+
38+
return Object.assign({}, JsDebugConfigAdapter.getExistingExtraArgs(attachArgs), extraArgs, {
3339
type: "pwa-node",
3440
request: "attach",
3541
name: "Attach",

0 commit comments

Comments
 (0)