Yes, it looks like the IDE executes the code before I edited.
I didn't try it outside the IDE. But it looks like after I run the program
already wrong. At this time, when I click to set break point, the red color
"Gary Chang[MSFT]" wrote:
> Hi Li,
>
> >Suddenly IDE can't find the code changes I made. After run the program
> >and step in, IDE only show old value and can't the new variables. When
> >click to make the break point, it doesn't cover current line. the length
> it
> >covers is the length of old line that used to be here.
> >...
>
> Based on my understanding, the problem is when you edit your VB.NET program
> and then debug it in the VS.NET 2003 IDE, it appears the IDE executes the
> code before you edited,please let me know if I have misunderstood it.
>
> Before diging into the problem, I want to know does this problem only occur
> when you debug your program or all the time, I mean if you build a debug
> (and a release) version program and run it outside the VS.NET IDE, which
> code it executes, edited or unedited?
>
> By the way, since the IDE has stepped into the unedited code, the project's
> debug database file seems to be outdated, you may take a try on deletting
> that program's PDB file(obj\debug\appname.pdb) and rebuild the project...
>
>
> Thanks!
>
> Best regards,
>
> Gary Chang
> Microsoft Community Support
> --------------------
> Get Secure! ¡§C
www.microsoft.com/security > Register to Access MSDN Managed Newsgroups!
>
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>