mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Make debug mode work with new VS Code JS debugger (#39098)
This commit is contained in:
parent
6c11ceb8db
commit
540c219980
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user