当前位置:网站首页>使用BoundsChecker「建议收藏」
使用BoundsChecker「建议收藏」
2022-07-23 13:26:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
BoundsChecker是一个Run-Time错误检测工具,它主要定位程序在运行时期发生的各种错误。
BoundsChecker能检测的错误包括:3sNews.Net——3S社区&资讯平台 t b U ^ N @ i7p’w M V B e 1)指针操作和内存、资源泄露错误,比如:内存泄露;资源泄露;对指针变量的错误操作。 2)内存操作方面的错误,比如:内存读、写溢出;使用未初始化的内存。平台 n.U3U B C _3S社区&资讯平台!z&v k.U M [8S([ 3)API函数使用错误。
使用BoundsChecker对程序的运行时错误进行检测,有两种使用模式可供选择。一种模式叫做ActiveCheck,一种模式叫做FinalCheck。下面分别进行介绍。 1)ActiveCheck是BoundsChecker提供的一种方便、快捷的错误检测模式,它能检测的错误种类有限,只包括:内存泄露错误、资源泄露错误、API函数使用错误。 U `)R4p+~0要想使用ActiveCheck模式来检测程序的运行时错误,只需在VC++集成开发环境中打开BoundsChecker功能,然后从调试状态运行程序即可。此时ActiveCheck会在后台自动运行,随时检测程序是否发生了错误。下面说一下具体的使用步骤。 首先,在VC++集成开发环境中打开你要对其进行测试的程序,同时保证项目处于Debug编译状态下。3sNews.Net——3S社区&资讯平台 c i3V
- 确保VC++集成开发环境中[BoundsChecker/ Integrated Debugging]菜单项和[BoundsChecker/Report Errors and Events]菜单项处于选中状态。
- 点击[ Build/Start Debug]菜单,选中“Go” 菜单项。程序开始在Debug状态下运行。
- 按照你制定好的测试用例,对程序进行操作。 m8/6V l `”`0
- 当BoundsChecker 检测到了错误时,会弹出窗口向你汇报,你可以当时就进行处理,也可以等到你的操作全部完成,退出程序之后再对列出的这些错误进行分析。这完全取决于你是否 选中了[BoundsChecker/Report Errors Immediately] 菜单项。
- 退出程序后,BoundsChecker会给出错误检测结果列表。该错误列表与ActiveChecker给出的错误列表的查看方法完全一样。只不过这个列表中所报告的信息会更多、更详细一些。
好 了,BoundsChecker在FinalCheck模式下的使用也介绍完了。ActiveChecker、FinalCheck这两种模式,比较而言 各有长短。ActiveChecker使用方便,只需在Debug状态下直接运行程序即可,并且程序的运行速度较快,但检测的错误种类有限; FinalCheck模式下,需要使用BoundsChecker的编译连接器重新编译连接生成可执行程序,并且程序的运行速度比较慢,但检测的错误种 类、提供的错误相关信息要多于ActiveChecker。所以,何时使用何种模式,应根据当时的具体情况而定。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126241.html原文链接:https://javaforall.cn
边栏推荐
- 精确的目标检测中定位置信度的获取
- [C language] structure, enumeration and union
- Circuit structure and output mode of GPIO port of 32-bit single chip microcomputer
- NodeJs实现token登录注册(KOA2)
- 中国化NFT?NFR横空出世
- 主成分分析(MATLAB)
- TS encapsulates the localstorage class to store information
- 浏览器四大内核
- tensorflow一层神经网络训练手写体数字识别
- anchor free yolov1
猜你喜欢

SurFace家族选购参照

【Web漏洞探索】SQL注入漏洞

Hcip datacom certification examination passed in July

【TensorFlow】检测TensorFlow GPU是否可用

The new business form of smart civil aviation has emerged, and Tupo digital twin has entered the civil aviation flight network of the Bureau

The working principle of PLL. For example, how can our 8MHz crystal oscillator make MCU work at 48mhz or 72mhz

Tan Zhangxi, director of risc-v Foundation: risc-v has gradually expanded from the edge to the center

微机原理与技术接口课后作业总结

Liupeng, vice president of copu: China's open source has approached or reached the world's advanced level in some areas

C#入门系列(二十八) -- LINQ的查询语法
随机推荐
Less than 10 days before the PMP Exam on July 30, what should be done?
泰山OFFICE技术讲座:段落边框的布局绘制分析
YOLOv4: Optimal Speed and Accuracy of Object Detection
Leetcode-168.excel table column name
What are the principal guaranteed financial products with an annual interest rate of about 6%?
僧多粥少?程序员要怎样接私活才能有效提高收入?
It's not safe to open an account at qiniu business school
SurFace家族选购参照
【Web漏洞探索】SQL注入漏洞
Direct exchange
FIO performance testing tool
Summary of after class homework of Microcomputer Principle and technical interface
Nifi 1.16.3 cluster setup +kerberos+ user authentication
Surface family purchase reference
Priyanka Sharma, general manager of CNCF Foundation: read CNCF operation mechanism
《STM32MP1 M4裸机CubeIDE开发指南》第六章 STM32Cube固件包
层次分析法(MATLAB)
pairwise的使用
微信小程序class绑定,怎么绑定2个变量
mysql的常见问题