Netbeans 7.01 与 Cygwin,调试器不会在断点处停止
我认为调试器配置正确(但还能是什么)?
如果我查看 Tools/Options/C/C++,它针对 Cygwin_4.x 设置得很好,并且工具集程序都存在(特别是 C:\cygwin\bin\gdb.exe),因为我可以构建和链接,这一切通过 NetBeans 发现工具集进行设置,我希望能够进行调试。
唯一的小细节是 C:\users\mawg.gdbinit 不存在。我提供了一个空文件但无济于事。 IIRC 从 20 年前手动运行 GDB 的形式来看是没有必要的。
如果我按 Ctrl+F5(调试主项目(我只有一个))或 Alt+F6(运行所有测试文件),应用程序将运行并生成输出...我还可以“步入”并按 F7 和继续进行操作。 F8 ...
...但是它不会在断点处停止。
我想我错过了一些非常简单的东西。请问谁能指点我一下?谢谢
I presume that the debugger is configured correctly (but what else can it be)?
If I look at Tools/Options/C/C++ it is set up nicely for Cygwin_4.x and the toolset programs all exist (especially C:\cygwin\bin\gdb.exe) Since I can build and link ok, and this all gets setup by NetBeans discovery of the toolset, I would expect to be able to debug.
The only minor detail is that C:\users\mawg.gdbinit does not exist. I supplied an empty file to no avail. IIRC from form running GDB by hand 20 years ago it isn't necessary.
If I Ctrl+F5 (debug main project (I have only one)) or Alt+F6 (run all test files) the application runs and produces output ... I can also "step into" and proceed with F7 & F8 ...
... but it won't stop on breakpoints.
I guess that I am missing something very simple. Who can point it out to me, please? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我可以删除这个问题,但我会发布“答案”,这样其他人可能还有一件事可以检查他们是否有同样的问题。
由于无法使用 Netbans 进行调试,我尝试了 MS Visual Studio,它报告说我有一个开口,
但没有相应的关闭。
这不是 NetBeans 问题;这是一个 GCC 编译器问题,来自 Cygwin 的 GCC,我会将其报告给 GNU/GCC。
寓意:可能值得检查;但通过一些不同的编译器和 linter 来运行有问题的代码总是值得的。
OK, I could just delete this question, but I will post the "answer" just so others might have one more thing to check if they have the same problem.
Not being able to debug with Netbans, I tried MS visual studio and it reported that I had an opening
without the corresponding close.
This is not a NetBeans problem; it is a GCC compiler problem, from GCC of Cygwin, I will report this to GNU/GCC.
Moral: migh be worth checking; but it is always worth running problematic code through a few different compilers and linters.