A-Z Popular Blog Coding Search »
Related Guides

What is Shotgun Debugging?

 , updated on
Shotgun debugging is the process of making relatively undirected changes to code in an attempt to fix a bug. This is essentially a process of guessing that may be used when a programmer has run out of ideas.
The term shotgun debugging has slightly negative connotations as it implies that a developer doesn't understand the code or design. For example, cut-and-paste coding often leads to shotgun debugging as developers may lack understanding of their own code.
In practice, highly skilled developers also use shotgun debugging from time to time. It is often faster to redesign and reimplement a section of code than to fix a difficult to reproduce bug.
Overview: Shotgun Debugging
Making changes to code in hopes of fixing a bug without knowing what is causing the bug.
It is often easier to rewrite poorly designed code than fix it.
Making code a little more robust often makes an error go away when you have been unable to determine a root cause after reasonable effort.
Related Concepts
Next: Educated Guess
More about coding:
Code Refactoring
Code Smell
Complexity Hiding
Deep Magic
Edge Case
Event Processing
Forward Compatibility
IT Artifact
IT Examples
Negative Code
Proof Of Work
Software Design
More ...
If you enjoyed this page, please consider bookmarking Simplicable.


A list of coding considerations and techniques.

Emergence vs Big Design Up Front

The difference between emergence and big-design-up-front.

Deep Magic

An overview of deep magic, a technology term.

Principle Of Least Astonishment

An overview of the Principle Of Least Astonishment.

Pull vs Push

The difference between pull and push technology.

Binary vs Hexadecimal

A comparison of binary and hexadecimal.

End-User Computing

An overview of end-user computing.

Library vs API

The difference between a library and API explained.

Code Reuse

The common types of code reuse.

Code Freeze

The common types of code freeze.

Problem Solving

An overview of problem solving with examples.

Thought Processes

A list of thinking approaches and types.


A definition of workaround with examples.

Creative Thinking

A list of common creative thinking techniques.


A list of common types of problems.

Analysis Paralysis

The definition of analysis paralysis with examples.

Arrow Of Time

The definition of the arrow of time with examples.

Business Problems

An overview of common business problems.

Decision Framing

The definition of decision framing with examples.


The common types of research.
The most popular articles on Simplicable in the past day.

New Articles

Recent posts or updates on Simplicable.
Site Map