1 - Chrome Debugger Extension is installed..
2 - lunch.json already created
3 - debugging mode is enabled
4 - debugger is running but stack and
I get error like
Error Message: Cannot find module 'd:\softwares\VSCode-win32-x64-1.22.2\resources\app\node_modules.asar\spdlog\build\spdlog.node'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (d:\softwares\VSCode-win32-x64-1.22.2\resources\app\node_modules.asar\bindings\bindings.js:81:44)
at Object.<anonymous> (d:\softwares\VSCode-win32-x64-1.22.2\resources\app\node_modules.asar\spdlog\index.js:3:35)
at Object.<anonymous> (d:\softwares\VSCode-win32-x64-1.22.2\resources\app\node_modules.asar\spdlog\index.js:21:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
My lunch.json looks like
{
"type": "mock",
"request": "chrome",
"name": "chrome",
"program": "${workspaceFolder}\\serve",
"preLaunchTask": "tsc: build - tsconfig.json",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/dist/out-tsc/**/*.js"
]
}
我在这里要求使用chrome,因为我已经安装了chrome调试扩展程序