Bug in Single Stepping over WHILE(TRUE) in VS2003
From: Saint Stephen (saint_at_stephen.com)
Date: 01/26/05
- Next message:
: "Re: invalidate and onpaint (how to handel multiple rectangels without flicker)" - Previous message: Saint Stephen: "Re: Update Visual Studio when I put Compact Framework SP4 on device?"
- Next in thread: Andreas Selle: "Re: Bug in Single Stepping over WHILE(TRUE) in VS2003"
- Reply: Andreas Selle: "Re: Bug in Single Stepping over WHILE(TRUE) in VS2003"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 Jan 2005 22:41:20 -0500
Has anybody seen this? VS skips the first statement in a block while
single-stepping if the loop is WHILE(TRUE). (The code is executed, the
debugger just doesn't stop.)
Repro: Create a new Smart Device Windows Forms app in C#.
1) Add the following code:
int t = 1;
while(true) {
int i = t;
t++;
}
2) Set a breakpoint on the while(true) line.
3) Hit the breakpoint, and press F10.
4) The debugger highlights t++; (The value of i is 1.)
5) Change the while(true) to while(t<10) and keep the breakpoint there.
6) Repeat Step 3.
7) The debugger highlights int i = t;
8) Repeat the entire thing using an ordinary Windows Forms app (not a PPC
app).
9) The debugger correctly stops on the first line regardless of the
loop type.
System: Windows Server 2003 with all patches as of this date.
(System is running inside VMWare).
Visual Studio 2003 with no patches or service packs.
PPC device HARD RESET.
.NET CF installed by VS2003 deployment process.
Maybe it's because I'm running in VMWare? Can anybody else repro this?
- Next message:
: "Re: invalidate and onpaint (how to handel multiple rectangels without flicker)" - Previous message: Saint Stephen: "Re: Update Visual Studio when I put Compact Framework SP4 on device?"
- Next in thread: Andreas Selle: "Re: Bug in Single Stepping over WHILE(TRUE) in VS2003"
- Reply: Andreas Selle: "Re: Bug in Single Stepping over WHILE(TRUE) in VS2003"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|