Я пытаюсь отладить машинописный текст в коде vs. Насколько я понял, вам нужно установить свойство outfiles в th launch.config для кода vs, чтобы сопоставить точку останова, которую вы установили в файле TypeScript из скомпилированного. js файла, как указано здесь .
Когда я пытаюсь установить свой, я получаю эту ошибку:
![enter image description here](https://i.stack.imgur.com/5EFEM.png)
Я ничего не нашел об этой ошибке в Google, и поскольку эти настройки необходимы для работы отладчика машинописного текста, как указано также в и документации кода .
Заранее благодарим за любую помощь.
Изменить:
запуск. json:
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "tsc",
"sourceMaps": true
}
]
tsconfig:
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
"inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"outDir": "src/ts-built",
"rootDir": "src"
}
}