当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby - How to compile programs to enable LLDB debugging symbols?

问题描述:

On my MacBook at work, I'm trying to use LLDB to attach to a running Ruby process.

It's normally suggested that one compile Ruby with the debug flag -ggdb(3) to use GDB. But I can't find anything equivalent for LLDB. My Google-fu is failing me, so I thought I'd ask, since this seems like an obscure request.

网友答案:

I would assume that all that -ggdb does is produce debug information. The format for this debug information is most likely DWARF, which both GDB and LLDB understand

If that is the case, -ggdb is a misnomer and should be fixed. But, for your intents and purposes, you should be able to just compile with -ggdb and then attach with LLDB and things should be all right

分享给朋友:
您可能感兴趣的文章:
随机阅读: