visual-studio-code - 在 Visual Studio Code 中添加断点

标签 visual-studio-code

我一定是在做一些愚蠢的错误,因为我似乎无法在 Visual Studio Code 中添加断点。

当我右键单击我的代码时会弹出以下内容。 (在行号旁边左键单击也不起作用)

enter image description here

我在这里阅读了文档 https://code.visualstudio.com/docs/editor/debugging#_breakpoints

它指出:

Breakpoints can be toggled by clicking on the editor margin.



我不知道它是什么或在哪里找到它。至少可以说缺乏针对初学者的文档。

最佳答案

转至 VS->Settings->Debug并将“debug.allowBreakpointsEverywhere”更改为true。

关于visual-studio-code - 在 Visual Studio Code 中添加断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38923386/

相关文章:

javascript - 如何使用 JSDoc 记录符号索引签名以符合 typescript ?

css - Visual Studio Code - 灰色框

typescript - 无法在 .ts 文件中获取 VS Code Stylelint 扩展到 lint

angular - VS code/Angular - Linter 无法识别通过共享模块导入的组件

visual-studio-code - Visual Studio Code 中的垂直标尺

git - 通过 ssh 在另一台机器上发出远程 git 命令时如何使用本地 Github ssh key

visual-studio-code - vscode中是否有办法只放大编辑器

javascript - 如何在 VS 代码中的 JavaScript 字符串中语法高亮 HTML?

javascript - 如何禁止 JavaScript 文件(.js 扩展名)中的 JSX 语法

python - 如何在 VS 代码 Debug模式下设置断点和命令行参数?