当前位置:网站首页>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)

总结

边栏推荐
- 单核CPU, 1G内存,也能做JVM调优吗?
- For 3nm and below processes, ASML new generation EUV lithography machine exposure
- B站崩了,那晚负责修复的开发人员做了什么?
- How to buy stocks on mobile phones? Is it safe to open an account
- STM32项目分享---MQTT智能门禁系统(含APP控制)
- Station B collapsed. If we were the developer responsible for the repair that night
- @Component可以和@Bean 用在同一个类上吗?
- [question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)
- 聊聊 MySQL 事务二阶段提交
- Software testing interview question: what project documents need to be referred to in designing the system test plan?
猜你喜欢

Why use MQ message oriented middleware? These questions must be solved
![Tencent cloud [hiflow] | automation --------- hiflow: still copying and pasting?](/img/dd/8ee989f5c9db632f78e79425497e71.png)
Tencent cloud [hiflow] | automation --------- hiflow: still copying and pasting?

8000字讲透OBSA原理与应用实践

Common shortcut keys and setting methods of idea

异常-Exception

Idea connects to MySQL database and performs SQL query operations

Station B collapsed. What did the developer responsible for the repair do that night?

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

day 1 - day 4

为什么要使用MQ消息中间件?这几个问题必须拿下
随机推荐
Pythia: Facebook's latest open source visual and language multitasking learning framework
[numerical analysis exercise] numerical integration (complex trapezoid, complex Simpson, Romberg integral) C with STL implementation
How can anyone ask how MySQL archives data?
It's too voluminous. A company has completely opened its core system (smart system) that has been operating for many years
华能福建公司与华为数字能源深化战略合作,共建低碳智能县域
Why do server programs need to listen first
Learn the use principle and core idea of thread pool from the source code
8000字讲透OBSA原理与应用实践
[C language] high precision addition, subtraction, multiplication and division template
Software testing interview question: what aspects should be considered when designing test cases, that is, which aspects should different test cases be tested for?
IDEA常用快捷键及设置方法
How to deal with high concurrency deadlock?
@Detailed introduction of requestparam annotation
Technology Management - we must focus on the big and let go of the small
Software testing interview question: what is the focus of unit testing, integration testing, and system testing?
Leetcode 148. sorting linked list
除了「加机器」,其实你的微服务还能这样优化
Microsoft store can't download apps, vs2019 can't download plug-ins solution
Log4j vulnerability is still widespread and continues to cause impact
Internal class (detailed explanation of four internal classes)