布局接下来显示[无可用源]

I can't understand why 'layout next' has stopped showing code. It worked for some time and i was happy with 'layout next' option but now i constantly see the error. Awkwardly enough i could find only one question relating that topic which doesn't seem to solve the problem. Any ideas how to bring this function back?

也许我应该找到一些编译标志来启用此功能?

EDIT:

确保在编译时添加-g标志,并在出现“布局下一个”窗口后键入run。

评论
  • 乐成
    乐成 回复
    无可用资源

    该错误的字面意思是:GDB不知道当前程序位置的源在哪里。

    有几种可能的原因:

    • you have not started the program yet
    • you built your program without debugging info (without -g flag)
    • you are stopped inside a system library
    • you moved the source to a different location after the program was built