all groups > visual studio .net debugging > september 2004 >
You're in the

visual studio .net debugging

group:

Single stepping / breakpoint problem


Single stepping / breakpoint problem Arpad Muranyi via .NET 247
9/23/2004 6:44:30 PM
visual studio .net debugging:
Forgive me for asking a question that may be too basic, but I am
relatively new to C++.

I am noticing that when I single step, the arrow will not stop on
the correct lines in some places, as if it was out of synch. I can't
set breakpoints on the lines the single stepper "overlooks" either.

I am using Visual Studio .NET, and its updater can't find any patches,
so I assume it is the latest possible version.

What is interesting about this is that an earlier version of my
program worked just fine. I added some code to it and it is misbehaving.
Rebuilding the whole thing doesn't help. By eliminating some lines of
code I can improve on things, but I can't find a concrete line that
causes this misalignment.

For example, this little if statement should never execute, but the
arrow will land on its second line. When I watch the variables, I
can see that in reality it executes code a few lines below.

if (false) {
EntryType = S"p";
MainScreen::ReceivedEntries->set_Item(EntryType, EntryValue1);
}

Could someone give me some clues for what to do? I could provide more
detail if needed, please tell me what to describe.

Thanks,

Arpad
=========================================================================




--------------------------------
From: Arpad Muranyi

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

Re: Single stepping / breakpoint problem Oleg Starodumov
9/24/2004 10:00:28 AM

[quoted text, click to view]

See if this KB article can help:
http://support.microsoft.com/?id=328784

Also check that the code is not optimized.

Regards,
Oleg







AddThis Social Bookmark Button