xcode 项目 was compiled with optimization -stepping may behave oddly ;variable may not be available

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014679795/article/details/76691558


  遇到问题:在xcode中,debug无法单步调试,单步运行执行步骤不按照语句顺序来。且无法查看到局部变量的值。

控制台显示:项目was compiled with optimization -stepping may behave oddly ;variable may not be available

分析:有地方设置来编译选项为-ON  N=1,2,3。。。

        解决:

1.查看是否为debug模式

2.项目的优化级别设置


3.有无额外的编译c++ flag


猜你喜欢

转载自blog.csdn.net/u014679795/article/details/76691558
今日推荐