One of the most commonly used debugging method in visual programming is to set a break-point in the code where you want the execution of the program to suspend and then debug into the code line by line. To do this in Visual Foxpro 6.0 is not as straight forward as in Visual Basic 6.0. In Visual Foxpro 6.0, you need to type the following code to the point where you want the program to suspend:
SET STEP ON
When Visual Foxpro hit the set step on command, it will suspend the program and open the debugger windows for you. From there, you can step into the code line by line by pressing the F8 key.
While in debugging mode, if you want to check the content of your cursor, you can add the Brow command at the point where you want to check the content of your cursor.