Why does Eclipse CDT ignore breakpoints?

前端 未结 12 1960
北恋
北恋 2020-12-14 16:52

My problem is that I set some breakpoints in my code and some of them aren\'t working. In some places it complains about \"Unresolved Breakpoint\".

Does anyone have

12条回答
  •  天命终不由人
    2020-12-14 17:14

    IF you are using GDB as a debugger, make sure you are using both flags: -g and -ggdb

    You can either edit the make file directly, FCFLAGS = -g -ggdb (some other flags you might have)

    or go to Debug Configuration (It's in the menu that drops down when you click on the little arrow besides the bug icon.) Select the project you are debugging, and click on the debugger tab. Check you are using gdb, and add the flags here.

提交回复
热议问题