Kar*_*son 10 visual-studio-code
我必须做一些愚蠢的错误,因为我似乎无法在Visual Studio Code中添加断点.
当我右键单击我的代码时会弹出以下内容.(左侧点击行号也不起作用)
我在这里阅读了文档https://code.visualstudio.com/docs/editor/debugging#_breakpoints
它指出:
可以通过单击编辑器边距来切换断点.
我不知道它是什么或我在哪里找到它.至少可以说缺少初学者的文档.
Alb*_*lan 16
截至 2020 年 12 月更新答案
对于那些找不到 debug.allowBreakpointsEverywhere 的人。
文件->首选项->设置
然后搜索“debug.allowBreakpointsEverywhere”。单击复选框,然后它将自动保存。干杯!
小智 15
转到VS-> Settings-> Debug并将"debug.allowBreakpointsEverywhere"更改为true.
我也遇到了这个问题。确保您没有
"editor.glyphMargin": false,
Run Code Online (Sandbox Code Playgroud)
在您的用户或工作区设置中。
| 归档时间: |
|
| 查看次数: |
10763 次 |
| 最近记录: |