http://blog.initm.com/eclipse-error-debug/

前些天遇到的问题这是,早就应该写了,但是需要做的事情太多,一直拖到要走了,拖不动了,写!和上一篇文章是相关的,因为我换了一个编辑器eclipse,第一次用,所以遇到一些问题,提示出现No source file named  怎么解决呢?

试了几次没有效果之后开始百度。中文的没有找到相关的文章,于是开始找英文的,英文很水,但是能看懂大概意思。下面我来说一下解决方法:

1.首先我们打开Debug Configurations

解决eclipse调试c++程序出现“No source file named” error

2.在弹出的窗口中选择Select other

解决eclipse调试c++程序出现“No source file named” error

3.然后在弹出的对话框中勾选Use configuration specific settings  然后选择Standard Create Process Launcher  确定

解决eclipse调试c++程序出现“No source file named” error

4.然后打开Debugger选项卡,如下设置一下

解决eclipse调试c++程序出现“No source file named” error

5.然后勾选这个Use full file path to set breakpoints

解决eclipse调试c++程序出现“No source file named” error

OK  搞定

参考资料:

http://stackoverflow.com/questions/12965726/no-source-file-named-error-debugging-eclipse-cdt





http://wp.brodzinski.net/eclipse/source-file-named-main-c-gdb-error/

„NO SOURCE FILE NAMED” – GDB ERROR IN ECLIPSE LUNA


Recently I came across a quite difficult problem during setting up a debug configuration for my STM32 ARM development environment in Eclipse.
When I was running a I always got „file not found” error in GDB console.

GDB error:
1
2
Function "0x8000000" not defined.
No source file named C:\\ARM\\workspace\\blinky\\src\\main.c.

解决eclipse调试c++程序出现“No source file named” error

Solution:

Go to your Debug Configuration -> Configure Workspace Settings
解决eclipse调试c++程序出现“No source file named” error

Expand Run/Debug -> Launching -> Default Launchers 
Select GDB Hardware debugging -> Debug (or Release depending on your Configurations)
Select option Legacy GDB Hardware Debugging Launcher
Then click Apply and OK
解决eclipse调试c++程序出现“No source file named” error

Then click Apply and OK

Now debug should work without any problems.

Related links:

http://stackoverflow.com/questions/19864204/eclipse-mingw-cdt-gdb-and-problems-with-debugging


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-05-28
相关资源
相似解决方案