Difference between revisions of "Single-step"

From Computer History Wiki
Jump to: navigation, search
m (+cat)
m (better)
 
Line 5: Line 5:
 
{{semi-stub}}
 
{{semi-stub}}
  
[[Category: Hardware Basics‎‎]]
+
[[Category: CPU Basics‎‎]]

Latest revision as of 15:15, 15 December 2018

To single-step a program is to have it execute a single instruction, and then halt, so that the programmer can see what the program is doing.

There are a number of different ways to cause single-stepping: on older computers with front panels, there is usually a switch setting which allows single-stepping the CPU. On newer machines, there is usually some way to cause the CPU to execute a single instruction, and then trap; debugger software then takes control, and allows the same sort of examination.