Set breakpoint on specific line using LLDB

核能气质少年 提交于 2021-01-27 07:52:56

问题


I am attempting to set a breakpoint on line 37 of my project in Xcode and I want to set this using LLDB. I know that I can set this breakpoint manually by clicking in the gutter, but I want to gain a better understanding of using LLDB. How would I build off of the statement below? Is that statement even heading in the correct direction?

breakpoint set --file

回答1:


Reference the documentation here

It looks like you can set a breakpoint in a particular file and line by using

(lldb) breakpoint set --file test.c --line 12


来源:https://stackoverflow.com/questions/47555329/set-breakpoint-on-specific-line-using-lldb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!