all groups > visual studio .net ide > march 2005 >
You're in the

visual studio .net ide

group:

IDE can't find the code changes. (VB.net)


IDE can't find the code changes. (VB.net) Li Weng
3/28/2005 1:31:02 PM
visual studio .net ide: Hi,

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.

I tried rebuild, reboot, etc. But doesn't help.
Please help me with this.
Thanks in advance.

Li
RE: IDE can't find the code changes. (VB.net) Li Weng
3/29/2005 5:09:05 AM
Yes, it looks like the IDE executes the code before I edited.
Yes, I debug it in the VS.NET 2003 IDE.

I didn't try it outside the IDE. But it looks like after I run the program
(debug version)within IDE (it's a GUI, so it stays thare waiting input or
button click), and haven't step in yet (that's what you mean by debug?), it's
already wrong. At this time, when I click to set break point, the red color
bar shows it can't find the correct line, i.e., it only covers the old line
length.

My coworker tried deleting .pdb file and that didn't help.

Thanks in advance.

Li


[quoted text, click to view]
RE: IDE can't find the code changes. (VB.net) v-garych NO[at]SPAM online.microsoft.com
3/29/2005 6:51:01 AM
Hi Li,

[quoted text, click to view]

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.
RE: IDE can't find the code changes. (VB.net) Li Weng
3/30/2005 5:17:08 AM
A team of three is working on the same solution and use sourceSafe to manage
it. All three PC has the same problem.
After we deleted some references and moved some references to local, it
looks like the problem is gone. But we don't know why.
If you see any cause from this please let me know. So I know how to handle
it next time. If not, that's ok. Anyway, it's ok now.

Thanks.

Li


[quoted text, click to view]
RE: IDE can't find the code changes. (VB.net) v-garych NO[at]SPAM online.microsoft.com
3/30/2005 7:45:39 AM
Hi Li,

If you copy and edit the current project in another machine, is it OK?

And do you get the same problem when you work with some other VB.NET
project?

By the way,do you work on another source code file whose filename is just
as the same as the target file you debugged by any chance?


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.
RE: IDE can't find the code changes. (VB.net) Li Weng
3/30/2005 8:17:06 AM
Hi, Gary:

That problem happens again!
Yesterday we checked in the changes and did reference deletion and moving,
etc. We got the change in IDE.
But today we checked out codes and made some changes and IDE doesn't see the
changes again!
Please help!

Thanks!

Li


[quoted text, click to view]
RE: IDE can't find the code changes. (VB.net) Li Weng
3/30/2005 1:29:03 PM
I think we found out the problem.
One of our references has incorrect path so IDE stoped building and didn't
generate new .exe. When we run, we run the old version! So it didn't have the
changes. To try fixing it we removed the references and added again so
sometimes it got re-built and look like the problem is gone.

Thanks.

Li

[quoted text, click to view]
RE: IDE can't find the code changes. (VB.net) v-garych NO[at]SPAM online.microsoft.com
3/31/2005 2:51:28 AM
Hi Li,

Thank you very much for updating us you got the answer, it seems I haven't
considered the possibility that you use the Visual Source Safe to manage
the project:(

By the way, next time if you get any similar problem which could be caused
by Source Safe, I suggest you can also post it to the Visual Source Safe
newsgroup:
microsoft.public.visual.sourcesafe
microsoft.public.vsnet.vss


Have a sunny day!

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.
AddThis Social Bookmark Button