Eclipse error: No source available for “”

后端 未结 1 676
野性不改
野性不改 2021-01-12 20:12

Using Eclipse Helios in Mac OS X Leopard and debugging C++ code calling fsf gdb 7.1, the debugging stops at first line of main. Then after the first step I get



        
相关标签:
1条回答
  • 2021-01-12 20:45

    I had the same problem and the following solved it:

    Go to menu Run->Debug Configurations... and a dialogue window opens. On the left there should be selected your project name (say MyProject for example) under C/C++ Application. If not select it. Then on the right side, select the tab main and make sure that in the textbox under C/C++ Application reads: Debug/MyProject. Also check that Debug is selected in the dropdown box next to Build Configuration: below.

    In my case instead of Debug/MyProject, it was Release/MyProject. I never understood why. Anyway...

    Hope that helps

    0 讨论(0)
提交回复
热议问题