简体   繁体   English

使用LLDB在特定行上设置断点

[英]Set breakpoint on specific line using LLDB

I am attempting to set a breakpoint on line 37 of my project in Xcode and I want to set this using LLDB. 我试图在Xcode的项目第37行设置一个断点,我想用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. 我知道我可以通过点击装订线手动设置这个断点,但我希望更好地理解使用LLDB。 How would I build off of the statement below? 我如何建立以下声明? Is that statement even heading in the correct direction? 该声明是否正朝着正确的方向前进?

breakpoint set --file

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM