调试
在计算机编程和工程中,调试是一个多步骤的过程,包括识别问题、隔离问题源,然后纠正问题或确定解决问题的方法。调试的最后一步是测试更正并确保其有效。在软件开发中,调试涉及定位和纠正计算机程序中的代码错误。调试过程在编写代码后立即开始,并随着代码与其他编程单元组合形成软件产品而在连续阶段继续进行。通过使用单元测试、代码审查和结对编程等策略,可以使调试过程更容易。
源代码分析器,包括安全性、常见代码错误和复杂性分析器,可以帮助调试。复杂性分析器可以找到复杂到难以理解和测试的模块。一些工具实际上可以分析测试运行以查看哪些代码行没有执行,这有助于调试。其他调试工具包括高级日志记录和模拟器,允许程序员对移动设备上的应用程序的显示和行为方式进行建模。
Debugging
Debugging, in computer programming and engineering, is a multi-step process that involves identifying a problem, isolating its source, and then either correcting the problem or determining a way to work around it. The final step of debugging is to test the correction and make sure that it works. In software development, debugging involves locating and correcting code errors in a computer program. The debugging process starts as soon as a code is written and continues in successive stages as the code is combined with other units of programming to form a software product. The debugging process can be made easier by using strategies such as unit tests, code reviews, and pair programming.
Source code analyzers, which include security, common code errors, and complexity analyzers, can be helpful in debugging. A complexity analyzer can find modules that are so intricate as to be hard to understand and test. Some tools can actually analyze a test run to see what lines of code were not executed, which can aid in debugging. Other debugging tools include advanced logging and simulators that allow the programmer to model how an app on a mobile device will display and behave.