PRB: SET STEP ON Opens the TRACE Window Only (131348)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0

This article was previously published under Q131348

SYMPTOMS

If the SET STEP ON command is executed outside of a program, it brings up the TRACE window, but it does not step through the program unless you have a breakpoint set in your program.

CAUSE

The following information from the Visual FoxPro Help file explains how SET STEP works:

SET STEP is used to debug programs. You can insert SET STEP ON in a program at the point where you want to execute individual commands. For information about the Trace window, see the Trace Window topic in the Visual FoxPro Help file and Chapter 16, "Testing and Debugging Applications," in the Developer's Guide.

To pass parameters to a program and then trace its execution, follow these steps:

  1. Open the Trace window.
  2. From the Trace window's Program menu, choose Open and select the program to trace.
  3. Set a breakpoint on the first executable line of the program.
  4. In the Command window, use DO to run the program with the parameters.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

SET STEP ON
DO <a program that does not have any breakpoints>
				
The TRACE window is activated, but stepping does not occur because there are no breakpoints.

Modification Type:MajorLast Reviewed:2/15/2000
Keywords:KB131348