当前位置:网站首页>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;
}
边栏推荐
- The method for win10 system to enter the control panel is as follows:
- Try to reprint an article about CSDN reprint
- Drawing maze EasyX library with recursive backtracking method
- Binary tree sorting (C language, int type)
- 基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程
- Unity editor expansion - draw lines
- On the difference and connection between find and select in TP5 framework
- 22-06-27 Xian redis (01) commands for installing five common data types: redis and redis
- 数据库原理期末复习
- Osganimation library parsing
猜你喜欢
[rust notes] 02 ownership
[concurrent programming] consistency hash
Final review of Database Principles
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial
Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
Dealing with duplicate data in Excel with xlwings
Try to reprint an article about CSDN reprint
UE4 source code reading_ Bone model and animation system_ Animation process
Unity learning notes
随机推荐
Pit & ADB wireless debugging of vivo real machine debugging
Convert video to GIF
Unity editor expansion - controls, layouts
Downward compatibility and upward compatibility
Markdown learning
Apache startup failed phpstudy Apache startup failed
Vscode, idea, VIM development tool shortcut keys
Final review of Database Principles
Notes and bugs generated during the use of h:i:s and y-m-d
[rust notes] 11 practical features
Common DOS commands
LinkedList set
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
[redis] redis persistent RDB vs AOF (source code)
Unity Editor Extension - Outline
[concurrent programming] Table hopping and blocking queue
Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
[concurrent programming] concurrent security
Life cycle of Servlet
【Rust 笔记】07-结构体