user10021033
user10021033

Reputation:

How to debug only the code I wrote in Xcode?

I am debugging my app in Xcode but it is getting so hard to do because it is also debugging some code I did not write and it is taking so long:

enter image description here

I would like to exclude all these code lines from debugging.

Any ideas?

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  CG.setId(indexPath.row) //I want to start to debug the app from this line
  performSegue(withIdentifier: "sgShowIssue", sender: self)
}

Upvotes: 0

Views: 127

Answers (1)

Rob Napier
Rob Napier

Reputation: 299605

If you've found yourself inside assembly code like this, you can escape back up the call stack using the "Step Out" debug control:

Step Out debug control

You can generally avoid diving into code you don't want to see by using the Step-Over control:

enter image description here

Upvotes: 1

Related Questions