最新消息:20210917 已从crifan.com换到crifan.org

[吐槽Xcode bug]代码中某些行经常打不上断点

Xcode crifan 3171浏览 0评论

之前对于Xcode的早一点的版本,好像是7.0左右的时候,就一直有这个问题了:

代码中时不时的,经常性的,有些行,无法打断点

 

比如:

别的地方都可以正常打断点

但是43行没法打断点:

line of code 43 can not add breakpoint

 

但是连42行都可以打断点。。。

有时候会发生这种诡异的事情。。

-》

后来用Xcode期间,经常性的,频率很高,遇到此问题:

某些行,就是无法打断点,只有剪切后粘贴,多输入一些回车换行-》再粘贴,原先的行,才能打上断点。。。

-》每次遇到此问题,都是郁闷死。

但又无法彻底解决此问题。

 

然后到了后来新一点版本的Xcode,比如:

Xcode 7.3.1

还是没有解决此问题

 

又比如:

有些代码,在最左边,点击后,无法打断点

line 45 can not add breakpoint while other can

 

而正常的话,余下的其他行代码,都是可以打断点的

 

搞得很多很多次,想要给这些行打断点的话,还要:

多输入几次回车

剪切再粘贴代码

再去删除空行

才能打上断点

after cut and paster then can add breakpoint

 

很是麻烦

 

搜:

xcode 无法断点

xcode 无法加断点

xcode 有些代码行 无法加断点

参考:

XCode基本调试方法 – 简书

Xcode断点无法定位到代码行中 – 简书

xcode 调试断点 – freshForIphone的专栏 – 博客频道 – CSDN.NET

Xcode之断点调试详解 – 简书

iOS SDK:iOS调试技巧 – CocoaChina_让移动开发更简单

都没有找到有用的。

 

搜:

xcode some line code cannot add breakpoint

xcode  code cannot add breakpoint

xcode  cannot set breakpoint

xcode7 cannot set breakpoint

xcode7 some code can not set breakpoint

参考:

How do you add a breakpoint in Xcode? – Stack Overflow

xcode4 – iOS framework project breakpoints not working – Stack Overflow

XCode not stopping on breakpoint – Stack Overflow

xcode – Why aren’t my breakpoints working? – Stack Overflow

xcode 7.2 breakpoint not trigged | Apple Developer Forums

都还是没有找到别人有类似问题的。

 

妹的。难道就我自己遇到这样经常性的,诡异的问题了?

转载请注明:在路上 » [吐槽Xcode bug]代码中某些行经常打不上断点

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
92 queries in 0.201 seconds, using 23.40MB memory