当前位置:网站首页>调试的技巧
调试的技巧
2022-06-10 18:16:00 【缘友一世】
调试是什么?
调试(英语:Debug/debug),又称除错,是否实现和减少计算机程序或电子仪器设备中程序性错误的一个过程。
调试的基本步骤
- 发现程序的错误存在
- 以隔离、消除等方式对错误进行定位
- 确定错误产生的原因
- 提出纠正错误的解决方法
- 对程序错误进行改正,重新测试
Debug和Release的介绍
Debug称为调试版本,它包含调试信息,并且不做任何优化,以便程序员调试程序。
Release称为发行版本,它往往是进行了各种优化,使得程序在大小和运行速度上都是最优的。
Windows环境调试介绍
调试环境的准备


快捷键

| 快捷键 | 作用 |
|---|---|
| F5 | 启动调试,经常用来直接调到下一个断点 |
| F9 | 创建断点和取消断点断点的重要作用,可以在程序的任意位置设置断点。这样就可以使得程序在想要的位置随意停止执行,继而一步步执行下去 |
| F10 | 逐过程,通常用来处理一个过程,一个过程可以是一次函数调用,或者是一条语句 |
| F11 | 逐语句,就是每次都执行一条语句,但是这个快捷键可以使我们的执行逻辑进入函数内部(这是最长用的)。 |
| CTRL+F5 | 开始执行不调试,如果你想让程序直接运行起来而不调试就可以直接使用 |
如果不起作用:请Fn+功能键
边栏推荐
- 元数据管理,数字化时代企业的基础建设
- How can bi help enterprises reduce labor, time and management costs?
- 企业数据质量管理:如何进行数据质量评估?
- Ruixin micro rk1126 platform platform porting libevent cross compiling libevent
- Anchor type and row data type of DB2 SQL pl
- Building smart community Internet of things based on smart road lamp posts
- Nodejs judge system type get host name execute console command Chinese garbled code
- Seata安装Window环境
- [kuangbin] topic 22 interval DP
- 阵列信号处理仿真之四——Z变换分析阵列多项式
猜你喜欢

Array signal processing simulation part IV -- Z-transform analysis array polynomial

Metadata management, the basic construction of enterprises in the digital era

Classic 6 pain points of data governance? This book teaches you to solve

Introduction to ad18 device library import

直播预告 | 社交新纪元,共探元宇宙社交新体验

Adobe Premiere foundation - opacity (matte) (11)

TestNG的HelloWorld例子以及如何在命令行下运行

数据处理时代,数据分析成为基础建设

Live broadcast preview | a new era of social interaction, exploring new social experiences in the universe

超级简单的课程设计ssm学生管理系统(含源码简单添加、删除、修改、查询操作)
随机推荐
TestNG的HelloWorld例子以及如何在命令行下运行
Adobe Premiere Foundation (animation) (VII)
第161章 SQL函数 YEAR
Adobe Premiere Basics - introduction, configuration, shortcut keys, creating projects, creating sequences (I)
Chapter III data type (II)
基于谱加权的波束方向图分析
Metadata management, the basic construction of enterprises in the digital era
[Code] neural symbol generation machine
实时商业智能BI(二):合理的ETL架构设计实现准实时商业智能BI
[QNX hypervisor 2.2 user manual] 3.3 configure guest
How to set up salesmartly for Google Analytics tracking
元数据管理,数字化时代企业的基础建设
VIM common shortcut keys
Linked List
Detailed explanation of Lora module wireless transceiver communication technology
Adobe Premiere基础-不透明度(蒙版)(十一)
OPENCV 检测人脸 不依赖于任何第三方库
[QNX hypervisor 2.2 user manual] 3.2.1 VM configuration syntax
Screen output of DB2 stored procedure, output parameters, and return result set
锐捷x32pro刷openwrt开启无线160MHz