mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Automatically enable debugMode when recording with Replay (#49027)
This commit is contained in:
parent
e69a0b0e38
commit
70fe93fe33
@ -1578,7 +1578,7 @@ export let sys: System = (() => {
|
||||
disableCPUProfiler,
|
||||
cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"),
|
||||
realpath,
|
||||
debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
|
||||
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,
|
||||
tryEnableSourceMapsForHost() {
|
||||
try {
|
||||
(require("source-map-support") as typeof import("source-map-support")).install();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user