Skip to content

Commit 540c219

Browse files
authored
Make debug mode work with new VS Code JS debugger (microsoft#39098)
1 parent 6c11ceb commit 540c219

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
@@ -1231,7 +1231,7 @@ namespace ts {
12311231
enableCPUProfiler,
12321232
disableCPUProfiler,
12331233
realpath,
1234-
debugMode: !!process.env.NODE_INSPECTOR_IPC || some(<string[]>process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
1234+
debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(<string[]>process.execArgv, arg => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)),
12351235
tryEnableSourceMapsForHost() {
12361236
try {
12371237
require("source-map-support").install();

0 commit comments

Comments
 (0)