如何在macOS上显示堆栈跟踪中的行号?

时间:2016-12-10 14:29:46

标签: macos debugging d

我在OS X El Capitan上使用dmd 2.072.1编译我的命令行程序,并尝试在使用LLDB进行调试时获取堆栈跟踪中显示的行号。目前堆栈跟踪如下所示:

core.exception.RangeError@Level.d(454): Range violation
----------------
4   Game                                0x000000010b108ac1 _d_arraybounds + 97
5   Game                                0x000000010b07f759 Level.__array + 41
6   Game                                0x000000010b0969c4 void Level.Level.GenerateBlocks() + 992
7   Game                                0x000000010b094c32 Level.Level Level.Level.__ctor(Renderer.Renderer, Level.Meshes, Level.Textures, bool, boo

是否可以通过LLDB查看行号?如果是这样,怎么样?如果没有,使用dmd时我有哪些替代方案?我正在使用Emacs开发我的D程序,但也为其他语言安装了Xcode。

0 个答案:

没有答案
相关问题