当前位置:网站首页>vs2019 release模式调试:此表达式有副作用,将不予计算。
vs2019 release模式调试:此表达式有副作用,将不予计算。
2022-07-27 19:21:00 【妙为】
visual studio系列文章目录
文章目录
前言
有时候拿到别人写的代码或者模块是release,想要调试怎么办呢。通常情况下调试的工程都是debug版本的,并且包含了pdb调试文件,才能调试代码。
int i = 0;
for (hour = 0; hour < 24; hour++)
{
for (minute = 0; minute < 60; minute += 10)
{
/*hour = 8; minute = 0;*/
//{ //南京的,经度:118.85651 纬度:32.02591
double hightAngle = Solardirection.H(latitude, longitude, year, month, day, hour, minute, second); //21.94 天顶角
double azimuthAngle = Solardirection.As(latitude, longitude, year, month, day, hour, minute, second); //84.85 方位角
HAS.at(i).at(0) = Solardirection.H(latitude, longitude, year, month, day, hour, minute, second); //21.94 天顶角
HAS.at(i).at(1) = Solardirection.As(latitude, longitude, year, month, day, hour, minute, second); //84.85 方位角
}
double rangleH = radiaToAngle(HAS.at(i).at(0));
double angleAS = radiaToAngle(HAS.at(i).at(1));
i++;
}
一、问题解决
在这种情况下,通过配置在visual studio也是可以在release下调试的。
1.操作步骤
1.工程项目上右键 打开 属性界面
2.c++ — 常规 ---- 调试信息格式 选 程序数据库(/Zi)或(/ZI), 注意:如果是库的话,只能(Zi)

3. 3. c/c++ ---- 优化 ---- 优化 配置 选 禁止(/Od)

4.4.连接器 — 调试 ---- 生成调试信息 选 是 (/DEBUG)

总结

边栏推荐
- It's too voluminous. A company has completely opened its core system (smart system) that has been operating for many years
- Learn the use principle and core idea of thread pool from the source code
- MySQL execution process and order
- @The difference between Autowired annotation and @resource annotation
- Small change project (two versions) with detailed ideas
- Go language learning notes - mutex start go language from scratch
- 直播软件app开发,uniapp scroll-view隐藏滚动条
- 一口气学完 Redis 集群方案
- Software test interview questions: the steps to write test cases by drawing cause and effect diagrams are___ And transforming the cause and effect diagram into a state diagram in five steps. What are
- Internal class (detailed explanation of four internal classes)
猜你喜欢

九天后我们一起,聚焦音视频、探秘技术新发展

Exception -exception

Finish learning redis cluster solution at one go

An article takes you into the world of pycharm - stop asking me about pycharm installation and environment configuration!!!

The design idea of relational database is obvious to you in 20 pictures

Small change project (two versions) with detailed ideas

零钱通项目(两个版本)含思路详解

Nine days later, we are together to focus on the new development of audio and video and mystery technology

MySQL执行过程及执行顺序

Read Plato farm's eplato and the reason for its high premium
随机推荐
数组扩容、排序、嵌套语句应用
How to learn object Defineproperty | an article takes you to quickly learn
Monitor the running of server jar and restart script
Project analysis (what is it training that can't be given)
Inventory Poka ecological potential project | cross chain characteristics to promote the prosperity of multi track
枚举和注解
Read Plato farm's eplato and the reason for its high premium
一口气学完 Redis 集群方案
Talk about MySQL transaction two-phase commit
Lvs+kept highly available cluster
Up to 7.5gbps! The world's first 5nm 5g baseband snapdragon X60 release: support the aggregation of all major bands!
Software test interview question: does software acceptance test include formal acceptance test, alpha test and beta test?
Learn the use principle and core idea of thread pool from the source code
Regular expression exercise
MySQL执行过程及执行顺序
8000字讲透OBSA原理与应用实践
QT take out the input box string, lineedit
[numerical analysis exercise] Jacobi iteration method of third-order matrix
ApacheSpark-命令执行(CVE-2022-33891) 漏洞复现
MySQL execution process and order