BUG: Debugger Does not Step Over to __finally Code BlockLast reviewed: May 21, 1997Article ID: Q168379 |
The information in this article applies to:
SYMPTOMSThe debugger does not Step-Over to code in __finally block from a __try block.
CAUSEThe __finally code is executed via a "call" instead of a "jmp instruction.
RESOLUTIONThe workaround is to do a Step-Into (F11 key) instead of Step-Over (F10 key) in the debugger.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce BehaviorCompile the following code with debug information.
#include <iostream.h> void main () { int counter=0; __try { counter++;//SET A BREAKPOINT HERE cout << "In try block" << endl; } __finally { counter++; cout << "In finally block" << endl; } cout << "Exit, counter=" << counter << endl; }Set a breakpoint on the line shown above. Start the debugger with Debug Go or by pressing the F5 key. Step-Over (or, press F10) from that point onward. The debugger exits the program without going to the __finally block. |
Keywords : kbtool vcbuglist500 WBDebug kbbuglist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |