当前位置:网站首页>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;
}边栏推荐
- 【Rust 笔记】09-特型与泛型
- 树形DP AcWing 285. 没有上司的舞会
- Six dimensional space (C language)
- 22-06-27 西安 redis(01) 安装redis、redis5种常见数据类型的命令
- Binary tree sorting (C language, int type)
- Binary to decimal, decimal to binary
- Eating fruit
- MySQL index types B-tree and hash
- 单调栈-503. 下一个更大元素 II
- Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
猜你喜欢
![[concurrent programming] working mechanism and type of thread pool](/img/51/d21428a7c95c0a5177e8198742e78c.jpg)
[concurrent programming] working mechanism and type of thread pool

MySQL three logs
![[rust notes] 02 ownership](/img/f7/74f8ea3bd697957f9ebfa3e1513fda.png)
[rust notes] 02 ownership

Six dimensional space (C language)

单调栈-42. 接雨水

Alibaba canal actual combat

Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)

Monotonic stack -84 The largest rectangle in the histogram
![[concurrent programming] thread foundation and sharing between threads](/img/26/60fbfe65b186867a3b1cb58d481226.jpg)
[concurrent programming] thread foundation and sharing between threads

Dom4j traverses and updates XML
随机推荐
Graphics_ Learnopongl learning notes
[concurrent programming] synchronization container, concurrent container, blocking queue, double ended queue and work secret
Unity multi open script
Notes and bugs generated during the use of h:i:s and y-m-d
Markdown learning
Downward compatibility and upward compatibility
Servlet的生命周期
Life cycle of Servlet
Unity editor expansion - controls, layouts
Try to reprint an article about CSDN reprint
MySQL index types B-tree and hash
使用dlv分析golang进程cpu占用高问题
Baidu editor ueeditor changes style
Log4j2 vulnerability recurrence and analysis
XPath实现XML文档的查询
树形DP AcWing 285. 没有上司的舞会
Six dimensional space (C language)
Animation_ IK overview
Unity editor expansion - the design idea of imgui
producer consumer problem