‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
2017-02-07 21:35
1196 查看
在xcode中出现:
‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
然后用单步调式模式出,一些变量出现空值,并且,不按顺顺执行语句。
方法,
工程在编译之后被优化了,所以导致单步的时候程序表现异常,变量也都不能访问了。这是由于编译的时候选择的是 release,而 release 的时候是会做很多优化,导致上述结果。
把编译方式改为Debug。
1.
2.
3.
‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
然后用单步调式模式出,一些变量出现空值,并且,不按顺顺执行语句。
方法,
工程在编译之后被优化了,所以导致单步的时候程序表现异常,变量也都不能访问了。这是由于编译的时候选择的是 release,而 release 的时候是会做很多优化,导致上述结果。
解决方法
把编译方式改为Debug。
具体步骤
1. 2.
3.
相关文章推荐
- ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
- ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
- [Project Name] was compiled with optimization - stepping may behave oddly; variables may not be available.
- iOS xcode ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be av
- was compiled with optimization - stepping may behave oddly; variables may not be available.
- Mac - was compiled with optimization - stepping may behave oddly; variables may not be available.
- was compiled with optimization - stepping may behave oddly; variables may not be available.
- was compiled with optimization - stepping may behave oddly; variables may not be available
- ieltsListen was compiled with optimization - stepping may behave oddly; variables may not be availab
- [app-name] was compiled with optimization - stepping may behave oddly; variables may not be availabl
- xcode 项目 was compiled with optimization -stepping may behave oddly ;variable may not be available
- 系统升级到iOS9,真机运行报“was compiled with optimization - stepping may behave oddly...”,闪退
- 运行的时候报 variables may not be available.
- Oracle Error - "OCIEnvCreate failed with return code -1 but error message text was not available".
- Publishing failed with multiple errors Could not delete *,May be locked by another process.
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- android studio报错Error:Project with path 'XXXX' could not be found解决办法
- The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent.
- kafka调试中遇到Connection to node -1 could not be established. Broker may not be available.
- Configuration problem: the 'initial-delay' attribute may not be used with cron and trigger tasks