FIX: Locals Window Not Refreshed with SUSPEND or SET STEP ON

ID: Q221681


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 6.0


SYMPTOMS

The Locals window of the Debugger does not refresh properly when a program contains either the SUSPEND or the SET STEP ON commands.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed


MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Visual FoxPro and the Debugger. Arrange the windows so that Visual FoxPro is on the right half of the screen, and the Debugger is on the left half. The screens should not overlap.


  2. Create a program called Test containing the following code:


  3. 
    CLEAR ALL
    DEBUG
    PUBLIC x
    
    x = PROGRAM()
    DO proc1 WITH x
    
    PROCEDURE proc1
    LPARAMETERS tx
    LOCAL x
    x = tx+' '+PROGRAM()
    SET STEP ON
    DO proc2 WITH x
    ENDPROC
    
    PROCEDURE proc2
    
    LPARAMETERS tx
    LOCAL x
    x = tx +' '+ PROGRAM()
    SET STEP ON
    ?x 
  4. Leave the Test program open and run the code.


  5. Press the Resume [>] toolbar button in the Debugger twice.


  6. Press the ALT+TAB keys to go back to Visual FoxPro and run the program again by pressing the CTRL+E keys.


  7. Call Stack window correctly says:

    Proc1
    Test.prg

    The Locals dropdown correctly says: Proc1. Value of x in Locals window is TEST; this is correct value for x in Test, not Proc1, and tx does not appear. If you move the Visual FoxPro window over the Debugger Locals window to make it repaint, you will see the correct value for x ("TEST PROC1"), but the letters tx still do not appear.

  8. Press the Resume [>] button in Debugger toolbar.


Observed: Call Stack window correctly says:

Proc2
Proc1
Test.prg

The Locals dropdown correctly says Proc2. Value of x in Locals window is TEST or TEST PROC1 depending on if you forced a repaint above in observed after step 3. This is correct value for x in Test or Proc1, and the letters tx still do not appear.

At any time, if you click a program in the Call Stack window, or click on the locals dropdown to select a procedure, the Locals Window displays the correct values.

To see the behavior with the SUSPEND command, follow these steps:
  1. Create and run the following code from a program (.PRG) file:


  2. 
    DEBUG
    x = 1
    SUSPEND
    x = 3 
  3. Look at the Locals window.


  4. Notice that x is not visible. If you click on the program name in the Call Stack window, x will appear in the Locals window.

Additional query words:

Keywords : kbMiscTools kbVFp600 kbVFp600bug kbVS600sp3fix kbGrpFox kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: August 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.