我一直在尝试调试使用 code::blocks 制作的控制台游戏端口中的错误。但是断点不会停在我设置的断点处。我环顾网络并确保 -g 已检查并且 -s 已关闭。我也在这里检查过,找不到与我的错误完全相同的东西。在设置断点之前,一切似乎都运行良好。我正在使用 Linux Mint 进行开发。这是日志:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /home/jake/C++ Projects/TichHoe2/
Adding source dir: /home/jake/C++ Projects/TichHoe2/
Adding file: bin/Debug/TichHoe2
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (Ubuntu/Linaro 7.4-2012.02-0ubuntu2) 7.4-2012.02
Error in re-setting breakpoint 2: Function "/home/jake/C++ Projects/TichHoe2/Board.h:108" not defined.