我正在使用面向 C/C++ 开发人员的 Eclipse IDE,并且想要调试我的 C 代码,但调试器会忽略所有断点。当我在程序的第一行放置一个断点时也会发生这种情况,所以一定有一些东西设置不正确。
我看到许多其他人也有类似/相同的问题,例如可以通过将 JDK 更新到 1.6 来解决。但我有 1.8.0_161,所以我认为这不是问题。
我还可以尝试什么或应该注意什么?
- Windows 7
- Java 版本“1.8.0_161”
- 面向 C/C++ 开发人员的 Eclipse IDE,版本:Oxygen.2 发行版 (4.7.2)
编辑:编译和运行程序工作正常(即输出符合我的预期)。
编辑 2:这是“调试器控制台”的输出(出于保密原因,我唯一更改的是路径中的“...”部分):
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
No source file named \\\\...\\MyPapers\\Electricity\\Implementation\\PowerLineRouting\\src\\PowerLineRouting.c.
No source file named \\\\...\\MyPapers\\Electricity\\Implementation\\PowerLineRouting\\src\\PowerLineRouting.c.
[新线程11104.0x2440]
但是,文件“PowerLineRouting.c”存在于我的计算机上该路径上的位置(当我使用 Windows 资源管理器时)。
感谢您的任何意见!
最佳答案
关于c - 面向 C/C++ 开发人员的 Eclipse IDE : breakpoints not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49862765/