05实用技术/Visual Studio Code - 在 JS 源码(TS、压缩前代码)上使用断点 更新时间:2019-02-15 02:01 创建时间:2019-02-15 02:01 步骤: 在构建工具(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 to JavaScript · Issue #41937 · Microsoft/vscode 上一篇 06CS/《深入理解计算机系统》 下一篇 01前端/JS 引擎