Shotgun debugging

Shotgun debugging

Shotgun debugging is a process of making relatively undirected changes to software in the hope that a bug will be perturbed out of existence. This almost never works except in very simple programs, or when used as an attempt to work around programming language features that one may be using improperly; it usually introduces more bugs. These undirected, random changes can however cause more symptoms to occur, which assists in locating (and therefore fixing) problems.

Shotgun debugging can occur when working with multi-threaded applications. Attempting to debug a race condition by adding debugging code to the application is likely to change the speed of one thread in relation to another and could cause the problem to disappear. Although apparently a solution to the problem, it is a fix by pure chance and anything else that changes the behaviour of the threads could cause it to resurface — for example on a computer with a different scheduler. Code added to any part of the program could easily revert the effect of the "fix".

Wikimedia Foundation. 2010.

См. также в других словарях:

  • Cargo cult programming — is a style of computer programming that is characterized by the ritual inclusion of code or program structures that serve no real purpose. Cargo cult programming is typically symptomatic of a programmer not understanding either the bug they were… …   Wikipedia

  • LINC — The LINC (Laboratory Instrument Computer) was a 12 bit, 2048 word computer. The LINC can be considered the first minicomputer and a foreruner to the personal computer. [For example see William H. Calvin letter The Missing LINC , BYTE magazine… …   Wikipedia

  • Heat Project — Infobox VG| title = Heat Project developer = DOOBIC Entertainment publisher = designer = Unknown engine = Lithtech released = genre = First person shooter/RPG modes = Online Multiplayer ratings = N/A platforms = Windows media = Internet Download… …   Wikipedia

  • Terminator video games — The games are either based directly on the movies or are heavily involved in the film s Expanded Universe.The Terminator (DOS)A DOS computer Action adventure game based on the first movie. Developed and published by Bethesda Softworks in 1990, it …   Wikipedia

Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»