我一定是在做一些愚蠢的错误,因为我似乎无法在 Visual Studio Code 中添加断点。
当我右键单击我的代码时会弹出以下内容。 (在行号旁边左键单击也不起作用)
我在这里阅读了文档 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/