【发布时间】:2017-08-06 20:37:40
【问题描述】:
我的设置:
- Eclipse Neon.2 (4.6.2)
- Kubuntu 16.04.2,64 位
今天开始我的 Eclipse,对 makefile 项目进行调试会话 → Debug As → Local C/C++ Application(就像我过去做过数百次一样)。
正如预期的那样,调试器在 main() 处停止,调试器控制台视图显示:
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Temporary breakpoint 1, main (argc=1, argv=0x7fffffffde68) at src/Main.cxx:169
169 {
我还可以步进和观察变量等等,Ctrl+R(运行到行)也可以工作。
但由于未知原因,我无法使用 eclipse 设置断点。
- 尝试双击文本编辑器的左边距,但什么也没做。
- 右键单击(上下文菜单)和
Toggle Breakpoint显示消息“未启用所选操作”,随后相关菜单条目被禁用(灰色)。
但是,我仍然可以使用 gdb 命令行(使用 eclipse 调试器控制台视图)设置断点。
请注意,设置断点直到几天前才起作用,但我不知道我的设置中可能发生了什么变化。
任何建议我的配置可能有什么问题以及如何解决这个问题?
【问题讨论】:
标签: eclipse debugging eclipse-cdt breakpoints