当前位置:网站首页>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;
}边栏推荐
- Unity editor expansion - the framework and context of unity imgui
- DOM 渲染系统(render mount patch)响应式系统
- [rust notes] 09- special types and generics
- Monotonic stack -503 Next bigger Element II
- Unity editor expansion - window, sub window, menu, right-click menu (context menu)
- PHP mnemonic code full text 400 words to extract the first letter of each Chinese character
- Unity notes 1
- [MySQL] MySQL Performance Optimization Practice: introduction of database lock and index search principle
- 基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程
- 单调栈-503. 下一个更大元素 II
猜你喜欢

请求参数的发送和接收

Phpstudy 80 port occupied W10 system

UE4 source code reading_ Mobile synchronization

Binary to decimal, decimal to binary

Alibaba canal actual combat

Markdown learning

Redux - learning notes

Gradle's method of dynamically modifying APK package name

Life cycle of Servlet

SQL statement error of common bug caused by Excel cell content that is not paid attention to for a long time
随机推荐
Allocation exception Servlet
[concurrent programming] synchronization container, concurrent container, blocking queue, double ended queue and work secret
22-06-28 Xi'an redis (02) persistence mechanism, entry, transaction control, master-slave replication mechanism
Dom4j遍历和更新XML
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
【Rust笔记】06-包和模块
Slice and index of array with data type
Monotonic stack -84 The largest rectangle in the histogram
Final review of Database Principles
[concurrent programming] concurrent security
Convert video to GIF
producer consumer problem
Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial
DOM 渲染系统(render mount patch)响应式系统
分配异常的servlet
Binary to decimal, decimal to binary
too many open files解决方案
[redis] redis persistent RDB vs AOF (source code)
[public key cryptography] ECC elliptic cryptosystem (implementing ElGamal encryption method)
C language student management system based on linked list, super detailed