[Project Name] 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.
如图所示:
![](https://images2015.cnblogs.com/blog/835172/201609/835172-20160903114744449-1546614673.jpg)
解决方法:
1>
![](https://images2015.cnblogs.com/blog/835172/201609/835172-20160903143613386-2065653094.png)
2>
![](https://images2015.cnblogs.com/blog/835172/201609/835172-20160903143911808-2069161184.png)