Make debug mode work with new VS Code JS debugger (#39098)

This commit is contained in:
Andrew Branch 2020-06-16 16:06:13 -07:00 committed by GitHub
parent 6c11ceb8db
commit 540c219980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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