FIX: Stepping Over Recursive Function Calls Is BrokenID: Q223364
|
Stepping over recursive function calls in the debugger does not work as expected. In some cases, the debugged application might hang, and in others, the debugger fails to break on the next line and instead continues as if the F5 key had been pressed.
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
Consider the following code:
/*1*/ private void recursiveFunction(int levels)
/*2*/ {
/*3*/ System.out.println("Level " + levels + " in");
/*4*/ if (levels != 0)
/*5*/ recursiveFunction(levels - 1);
/*6*/ System.out.println("Level " + levels + " out");
/*7*/ }
/*8*/
/*9*/ private void button1_click(Object source, Event e)
/*10*/ {
/*11*/ recursiveFunction(15);
/*12*/ }
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Tim Gerken, Microsoft Corporation
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words:
Keywords : kbservicepack kbDebug kbide kbJavaVM kbVJ600fix kbGrpJava kbVS600sp2 kbVS600SP1 kbVS600sp3fix
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 19, 1999