Max MacLeod
Max MacLeod

Reputation: 26652

How do I set a conditional breakpoint on a specific table row using lldb?

In Xcode, I want to breakpoint on a specific table row request in the method tableView:cellForRowAtIndexPath: using lldb:

enter image description here

For example, let's say I want to breakpoint on the 44th row of indexPath.row. How can I do that?

Upvotes: 1

Views: 318

Answers (1)

Max MacLeod
Max MacLeod

Reputation: 26652

Using the Condition field, enter in the condition as follows: enter image description here

where the debugger will stop on indexPath.row == 44.

Note that an alternative way to do this would be to set the Ignore field value to 44. However that doesn't offer the flexibility that a condition does to stop on a specific indexPath row or section.

Upvotes: 1

Related Questions