Skip to content

Commit 70fe93f

Browse files
authored
Automatically enable debugMode when recording with Replay (#49027)
1 parent e69a0b0 commit 70fe93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ export let sys: System = (() => {
15781578
disableCPUProfiler,
15791579
cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"),
15801580
realpath,
1581-
debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
1581+
debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!(process as any).recordreplay,
15821582
tryEnableSourceMapsForHost() {
15831583
try {
15841584
(require("source-map-support") as typeof import("source-map-support")).install();

0 commit comments

Comments
 (0)