当前位置:网站首页>Debug debugging - Visual Studio 2022
Debug debugging - Visual Studio 2022
2022-07-03 08:50:00 【Cap07】
1. First make sure you are Debug In mode :

2. First click the paragraph number to form a red breakpoint :

3. Sentence by sentence (F11): In code order , Run line by line from top to bottom , If a function is encountered , Then enter the function , Run line by line .
Process by process (F10): The main function runs line by line from top to bottom ( Even if it's for The loop also runs line by line ), If a function is encountered , Directly call it at one time .
debugging (F5): Run directly to the breakpoint and stop , If you press F11, Then enter the breakpoint ( When the breakpoint is a function ); If pressed F10, Then execute the statement at the breakpoint at one time , Then execute the following statement .
notes : Enter function ( Such as test()) after ,F11 And F10 The effect is the same


Test code :
#include<iostream>
using namespace std;
void test(int a) {
int b[10] = {};
for (int i = 0; i < a; i++) {
cout << i << " ";
b[i] = i;
}
if (a < 3)
cout << " Less than 3" << endl;
else
cout << " Not less than 3" << endl;
}
int main() {
int a;
cin >> a;
test(a);
for (int i = 0; i < 4; i++) {
cout << i << " ";
}
test(3);
return 0;
}边栏推荐
- Apache startup failed phpstudy Apache startup failed
- 高斯消元 AcWing 883. 高斯消元解线性方程组
- 使用dlv分析golang进程cpu占用高问题
- Message pack in C deserializes array objects
- Deeply understand the underlying data structure of MySQL index
- Redux - learning notes
- Notes and bugs generated during the use of h:i:s and y-m-d
- Concurrent programming (VI) ABA problems and solutions under CAS
- 【Rust 笔记】07-结构体
- Message queue for interprocess communication
猜你喜欢

Concurrent programming (V) detailed explanation of atomic and unsafe magic classes

Monotonic stack -503 Next bigger Element II

Binary tree sorting (C language, char type)

Really explain the five data structures of redis

Log4j2 vulnerability recurrence and analysis
![[RPC] RPC remote procedure call](/img/dc/872204ea47fcff04cdb72e18a2a4ef.jpg)
[RPC] RPC remote procedure call

Deep parsing (picture and text) JVM garbage collector (II)

高斯消元 AcWing 883. 高斯消元解线性方程组

Es8 async and await learning notes

树形DP AcWing 285. 没有上司的舞会
随机推荐
Unity editor expansion - the design idea of imgui
[MySQL] MySQL Performance Optimization Practice: introduction of database lock and index search principle
UE4 source code reading_ Bone model and animation system_ Animation node
Servlet的生命周期
Baidu editor ueeditor changes style
Visual Studio (VS) shortcut keys
How to use Jupiter notebook
Vscode, idea, VIM development tool shortcut keys
OpenGL learning notes
基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程
Monotonic stack -84 The largest rectangle in the histogram
Phpstudy 80 port occupied W10 system
22-06-27 Xian redis (01) commands for installing five common data types: redis and redis
I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
PHP mnemonic code full text 400 words to extract the first letter of each Chinese character
Cesium for unreal quick start - simple scenario configuration
[concurrent programming] Table hopping and blocking queue
[RPC] RPC remote procedure call
Gif remove blank frame frame number adjustment
【Rust 笔记】09-特型与泛型