您如何在C+&#x2B中找到错误的行号。在VSCODE代码运行中?
我是VSCODE的新手。我使用Code-Runner扩展程序来运行C ++程序,奇怪的是,它并没有确切告诉我哪一行引起了错误。我应该怎么知道?
例如,错误消息将看起来像这样
/bin/sh:行1:87002分割故障:11“/my/path”
I am pretty new to VSCode. I use code-runner extension to run C++ program and strangely it does not tell me exactly which line caused the error. How should I know it?
For example the error message will look like this
/bin/sh: line 1: 87002 Segmentation fault: 11 "/my/path"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您从Visual Studio代码中选择选项
终端>新终端
并用类似的内容手动编译源文件:如果有任何警告/错误/等,则汇编将失败。被编译器抓住。
I would suggest that you choose from Visual Studio Code the option
Terminal > New Terminal
and manually compile your source file with something similar to the following:The compilation will fail if there is any warning/error/etc. caught by the compiler.