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

总结

边栏推荐
- The design idea of relational database is obvious to you in 20 pictures
- What is modcount in the source code? What's the effect
- Software testing interview question: when does the software testing project start? Why?
- It's too voluminous. A company has completely opened its core system (smart system) that has been operating for many years
- Log4j vulnerability is still widespread and continues to cause impact
- 8000 word explanation of OBSA principle and application practice
- How long will it take to learn the four redis cluster solutions? I'll finish it for you in one breath
- @Component可以和@Bean 用在同一个类上吗?
- The gratitude and resentment between the four swordsmen and code review: "abandon all chaos" to "prodigal son returns"
- Software test interview question: please say who is the best person to complete these tests, and what is the test?
猜你喜欢
Excalidraw: an easy-to-use online, free "hand drawn" virtual whiteboard tool

LVS+Keepalived高可用群集

MySQL execution process and order

项目分析(从技术到项目、产品)

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

How to use Fiddler for weak network testing

Log4j 漏洞仍普遍存在,并持续造成影响

The gratitude and resentment between the four swordsmen and code review: "abandon all chaos" to "prodigal son returns"

How long will it take to learn the four redis cluster solutions? I'll finish it for you in one breath

Form of objects in memory & memory allocation mechanism
随机推荐
学完4种 Redis 集群方案要多久?我一口气给你说完
Software test interview question: does software acceptance test include formal acceptance test, alpha test and beta test?
8000 word explanation of OBSA principle and application practice
@Can component be used on the same class as @bean?
Deepfake's face is hard to distinguish between true and false, and musk Fenke has disguised successfully
2021-11-05类变量和类方法的理解
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: please say who is the best person to complete these tests, and what is the test?
Read Plato farm's eplato and the reason for its high premium
2021-11-05 understand main method syntax, code block and final keyword
7行代码让B站崩溃3小时
8000字讲透OBSA原理与应用实践
Software testing interview question: how many strategies are there for system testing?
[question 22] dungeons and Warriors (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)
8000 word explanation of OBSA principle and application practice
Excalidraw:很好用的在线、免费「手绘」虚拟白板工具
排序(冒泡排序)后面学习持续更新其它排序方法
8000 word explanation of OBSA principle and application practice
The US Department of justice added 16 new charges against Huawei, including stealing trade secrets
Technology Management - we must focus on the big and let go of the small