LLDB not showing source code

后端 未结 2 680
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 05:06

I am trying to debug a C++ program I am writing, but when I run it in LLDB and stop the program, it only shows me the assembler, not the original source. e.g. after the cras

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 05:45

    I solved it by adding the path to debug symbols which are present in a.out.dSYM directory using (lldb) target symbols add a.out.dSYM command.

提交回复
热议问题