当我们在开发xcode程序时,往往要用到xcode调试,但由于不小心修改了一些配置信息,而导致在调试时不能追踪到具体的代码区,以下就是个人的解决办法
1,首先要进入调试模式
设置断点,点击运行
或者
- - (IBAction)clickedButton:(id)sender
- UIButton *button = (UIButton *)sender;
- UITableViewCell *cell = (UITableViewCell *)button.superview;
- UITableView *tableView = (UITableView *)cell.superview;
- NSIndexPath *indexPath = [tableView indexPathForCell:cell];
- }
![](https://i-blog.csdnimg.cn/blog_migrate/08ad4527bca60e17a06be2945a4130e8.jpeg)
2.点击菜单product->Debug workflow取消选中show Disassembly when debug
![](https://i-blog.csdnimg.cn/blog_migrate/af9e2a3df5a45713bf9f259f8a6277c0.jpeg)
3,以上操作完成以后就会出现以下结果
![](https://i-blog.csdnimg.cn/blog_migrate/5b71195eaa55c8fc6d701c90d503200e.jpeg)
现在就可以看到调试的当前代码了