当前位置:网站首页>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 seems to be a bug of thread pool, but I think the source code design is unreasonable.
- 项目分析(从技术到项目、产品)
- Encapsulate an array into a class
- Matplotlib 多子图绘制
- 关系型数据库的设计思想,20张图给你看的明明白白
- MySQL data recovery process is based on binlog redolog undo
- 异常-Exception
- 单核CPU, 1G内存,也能做JVM调优吗?
- 【海洋科学】海洋气候指数【Climate Indices】数据集
- How to deal with high concurrency deadlock?
猜你喜欢

项目分析(哪些是it培训给不了)

Pythia: Facebook's latest open source visual and language multitasking learning framework

Lvs+kept highly available cluster

IDEA常用快捷键及设置方法

单核CPU, 1G内存,也能做JVM调优吗?

matlab 绘制三坐标(轴)图

Deepfake's face is hard to distinguish between true and false, and musk Fenke has disguised successfully

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

Microsoft store can't download apps, vs2019 can't download plug-ins solution

7行代码让B站崩溃3小时
随机推荐
Monitor the running of server jar and restart script
Pythia: Facebook's latest open source visual and language multitasking learning framework
Finish learning redis cluster solution at one go
Regular expression exercise
The source code of live broadcast app system, and the rotation diagram of upper and lower layers
8000 word explanation of OBSA principle and application practice
Read Plato farm's eplato and the reason for its high premium
【StoneDB故障诊断】系统资源瓶颈诊断
The US Department of justice added 16 new charges against Huawei, including stealing trade secrets
Software test interview question: does software acceptance test include formal acceptance test, alpha test and beta test?
一种比读写锁更快的锁,还不赶紧认识一下
A lock faster than read-write lock. Don't get to know it quickly
Implementation of arbitrary code execution based on.Net dynamic compilation technology
B站崩了,那晚负责修复的开发人员做了什么?
MySQL执行过程及执行顺序
ThreadLocal principle and source code analysis (click in step by step, don't recite, learn ideas)
Live video source code, uni app to achieve advertising scroll bar
Member method and its parameter transmission mechanism
【海洋科学】海洋气候指数【Climate Indices】数据集
V2.X 同步异常,无法云端同步的帖子一大堆,同步又卡又慢