步骤: 在构建工具(webpack.gulp 等)的配置中开启生成 source map 将 VSCode 配置中的debug.allowBreakpointsEverywhere设置为true(重要!这个选项默认是false) 现在就可以愉快得在源码上下断点了. 参见:Can set break points in the Visual Studio Code debugger for Typescript, but not for other languages that compile t…