Xcode調(diào)試斷點(diǎn)不能停在代碼區(qū)終極解決方案
當(dāng)我們?cè)陂_(kāi)發(fā)xcode程序時(shí),往往要用到xcode調(diào)試,但由于不小心修改了一些配置信息,而導(dǎo)致在調(diào)試時(shí)不能追蹤到具體的代碼區(qū),以下就是個(gè)人的解決辦法
1,首先要進(jìn)入調(diào)試模式
設(shè)置斷點(diǎn),點(diǎn)擊運(yùn)行
或者
- - (IBAction)clickedButton:(id)sender
- UIButton *button = (UIButton *)sender;
- UITableViewCell *cell = (UITableViewCell *)button.superview;
- UITableView *tableView = (UITableView *)cell.superview;
- NSIndexPath *indexPath = [tableView indexPathForCell:cell];
- }
2.點(diǎn)擊菜單product->Debug workflow取消選中show Disassembly when debug
3,以上操作完成以后就會(huì)出現(xiàn)以下結(jié)果
現(xiàn)在就可以看到調(diào)試的當(dāng)前代碼了