我的设置:
今天开始我的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
(Run to Line)也可以。
但由于未知原因,我无法使用eclipse设置断点。
Toggle Breakpoint
显示一条消息&#34;未启用所选操作&#34;之后,相关菜单条目被禁用(灰色)。但是,我仍然可以使用gdb命令行设置断点(使用eclipse调试器控制台视图)。
请注意,设置断点已经工作到几天前了,但我不知道在我的设置中可能已经更改了什么。
有任何建议我的配置可能出错,以及如何解决此问题?