当我尝试调试任何程序时,出现错误“无法打开文件:Blocks / Default / main.cpp ”完整调试器日志:
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/alex/Documents/Code::Blocks/Default/
Adding source dir: /home/alex/Documents/Code::Blocks/Default/
Adding file: /home/alex/Documents/Code::Blocks/Default/bin/Debug/Default
Changing directory to: /home/alex/Documents/Code::Blocks/Default/.
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args /home/alex/Documents/Code::Blocks/Default/bin/Debug/Default
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Cannot open file: Blocks/Default/main.cpp
At Blocks/Default/main.cpp:5
Debugger finished with status 0
我正在运行Debian 8.3 jessie,Code :: Blocks svn build rev 10637,gdb(Debian 7.7.1 + dfsg-5)7.7.1,终端:“gnome-terminal -t $ TITLE -x” 我正在使用默认的Code :: Blocks设置。源文件位于项目目录中,编译和运行工作正常......
当我运行调试器时,我也得到“警告:GDB:无法设置控制终端:操作不允许”,但我搜索了网络,似乎这个警告是正常的,应该是忽略...