Debug code

Debug code

Debug code is computer code introduced to a computer program to test for errors or to help determine the cause of an error. It can be as simple as an echo command to print the value of a variable at certain points of a program. Modern integrated development environments sometimes render this unnecessary by allowing the placement of stop points at specific places in the program, and providing the ability to view the value of variables through the IDE rather than program output.

Many videogame cheat codes, such as level select, invincibility, etc. were originally introduced as debug code to allow the programmers and/or testers to skip hindrances that would prevent them from rapidly getting to parts of the game that needed to be tested; and in these cases cheat modes are often referred to as debugging mode. Embedded systems sometimes contains debugging code; an example is the Background Debug Mode interface.

It is recommended as a best practice that debugging code be removed from production versions of applications, as it can slow them down.[1]

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Code bloat — is the production of code that is perceived as unnecessarily long, slow, or otherwise wasteful of resources. Code bloat can be caused by inadequacies in the language in which the code is written, inadequacies in the compiler used to compile the… …   Wikipedia

  • Debug symbol — A debug symbol is information that expresses which programming language constructs generated a specific piece of machine code in a given executable module. Sometimes the symbolic information is compiled together with the module s binary file, or… …   Wikipedia

  • Debug — Débogueur Voir « débogueur » sur le Wiktionnaire …   Wikipédia en Français

  • Debug (command) — Infobox Software name = Debug author = Tim Paterson developer = Microsoft operating system = DOS, MS DOS, OS/2, Microsoft Windows genre = Debugger website = [http://technet.microsoft.com/en us/library/bb491040.aspx Debug] debug is a command in… …   Wikipedia

  • debug (command) — This article is about a shell command. For programming method, see Debugging. Debug Original author(s) Tim Paterson Developer(s) Microsoft Operating system DOS, MS DOS, OS/2, Microsoft …   Wikipedia

  • Code generation (compiler) — In computer science, code generation is the process by which a compiler s code generator converts some intermediate representation of source code into a form (e.g., machine code) that can be readily executed by a machine (often a computer).… …   Wikipedia

  • Code::Blocks — Not to be confused with the computer programming term code block. Code::Blocks Code::Blocks 10.05 running on Windows Vista …   Wikipedia

  • Cheat code — A Cheat code (also called debug code or backdoor) is a code that can be entered into a computer program to alter the run time behavior or configuration of that program. The code may consist of an alphanumeric string entered via a keyboard, a… …   Wikipedia

  • Background Debug Mode interface — Background Debug Mode (BDM) interface is an electronic interface that allows debugging of embedded systems. Specifically, it provides in circuit debugging functionality in microcontrollers. It requires a single wire and specialized electronics in …   Wikipedia

  • IBM OLIVER (CICS interactive test/debug) — OLIVER (CICS interactive test/debug) was a proprietary testing and debugging toolkit for interactively testing programs designed to run on IBM s Customer Information Control System (CICS) on IBM s System/360/370/390 architecture. It provided… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”