问题:
当Xcode处在Release模式下时,断点调试无法打印变量
was compiled with optimization - stepping may behave oddly; variables may not be available.
解决办法:
在Build Setting中搜索“optimization level”,可以看到Release默认的值为“Fastest,Smallest”

可以对照Debug的值将Release的值也改为“None”。
当Xcode处在Release模式下时,断点调试无法打印变量
was compiled with optimization - stepping may behave oddly; variables may not be available.
在Build Setting中搜索“optimization level”,可以看到Release默认的值为“Fastest,Smallest”
本文标题:Xcode在Release模式下无法断点调试
本文链接:https://www.haomeiwen.com/subject/tsosrctx.html
网友评论