当前位置:网站首页>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;
}边栏推荐
猜你喜欢

基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程

Chocolate installation

Redux - learning notes

VIM learning notes from introduction to silk skating

Animation_ IK overview

22-06-28 Xi'an redis (02) persistence mechanism, entry, transaction control, master-slave replication mechanism

JS ternary operator - learning notes (with cases)

Query XML documents with XPath
![[concurrent programming] explicit lock and AQS](/img/5f/a80751a68726f53d11133810f454a3.jpg)
[concurrent programming] explicit lock and AQS

Unity editor expansion - scrolling list
随机推荐
Solution of 300ms delay of mobile phone
Binary tree sorting (C language, int type)
Analysis of Alibaba canal principle
Servlet的生命周期
Eating fruit
DOM 渲染系统(render mount patch)响应式系统
Slice and index of array with data type
【Rust笔记】02-所有权
On the setting of global variable position in C language
On the difference and connection between find and select in TP5 framework
【Rust 笔记】08-枚举与模式
Es8 async and await learning notes
JS non Boolean operation - learning notes
Unity Editor Extension - event handling
Try to reprint an article about CSDN reprint
Notes and bugs generated during the use of h:i:s and y-m-d
Concurrent programming (III) detailed explanation of synchronized keyword
Annotations simplify configuration and loading at startup
树形DP AcWing 285. 没有上司的舞会
【Rust笔记】05-错误处理