Andrew Tuzson
Andrew Tuzson

Reputation: 639

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. 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

Upvotes: 8

Views: 9062

Answers (1)

Scriptable
Scriptable

Reputation: 19750

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

Upvotes: 17

Related Questions