当前位置:网站首页>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;
}
边栏推荐
- MySQL index types B-tree and hash
- [rust notes] 06 package and module
- 22-05-26 西安 面试题(01)准备
- Log4j2 vulnerability recurrence and analysis
- Mortgage Calculator
- Six dimensional space (C language)
- [rust notes] 02 ownership
- 单调栈-42. 接雨水
- 单调栈-503. 下一个更大元素 II
- UE4 source code reading_ Bone model and animation system_ Animation process
猜你喜欢
Try to reprint an article about CSDN reprint
请求参数的发送和接收
Animation_ IK overview
[concurrent programming] consistency hash
Markdown learning
First Servlet
Dealing with duplicate data in Excel with xlwings
Drawing maze EasyX library with recursive backtracking method
Collection interface
[concurrent programming] Table hopping and blocking queue
随机推荐
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
22-05-26 Xi'an interview question (01) preparation
Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
Concurrent programming (V) detailed explanation of atomic and unsafe magic classes
MySQL 8
Gradle's method of dynamically modifying APK package name
Common DOS commands
[rust notes] 02 ownership
PHP function date (), y-m-d h:i:s in English case
22-06-27 Xian redis (01) commands for installing five common data types: redis and redis
PHP mnemonic code full text 400 words to extract the first letter of each Chinese character
Location of package cache downloaded by unity packagemanager
分配异常的servlet
Dealing with duplicate data in Excel with xlwings
22-06-28 西安 redis(02) 持久化机制、入门使用、事务控制、主从复制机制
Deeply understand the underlying data structure of MySQL index
Six dimensional space (C language)
[concurrent programming] atomic operation CAS
注解简化配置与启动时加载
Mortgage Calculator