P (Program Step)

Syntax

P [[count]]

Parameters

count

Repeat stepping count times.

Description

The Program Step (P) command executes the current line (in Source mode) or instruction (in Mixed or Assembly mode), stepping over functions. To trace into functions, use the Trace (T) command. If a value for count is specifed, CodeView steps through count lines or instructions. If not, only the current line or instruction is executed.

In Source mode, if the current source line contains a function call, CodeView executes the entire function and is ready to execute the line after the call.

In Mixed or Assembly Mode, if the current instruction is CALL, INT, or REP, CodeView executes the entire procedure, interrupt, or repeated string sequence.

Mouse and Keyboard

In addition to typing the P command, you can step through a program using the following shortcuts:

Click the <F10=Step> button in the status bar to step once.

Press F10 to step once.