I have been making a sequence of changes to a form, entering debug mode after a few changes. Suddenly debug mode has stopped displaying recent changes, instead reverting to an ealier version. There are no indications of either compile or runtime errors. This makes it difficult to determine what is causing the problem. Is there some way to make the IDE not use a cached version

Debug mode reverts to previous level of form
CGuyArun
Matt,
One more bit of information. I added a text box but got this message, which I don't understand:
"You have added a control or component while localizing. When in the current language, the changes you make for this object will be persisted to both the current language resource file and the invariant language resource file. Remember to change the language back to the invariant language and update any properties for this object."
I have no idea what that means nor do I know if it has a bearing on the problem I am currently experiencing.
Pete
jaskey
Much obliged,
--Matt--*
Satriani
Matt,
I think I have solved the problem. The forms 'localization' property had been set inadvertently to 'True'. Switching that back to "False" displays a proper, updated form.
I thank you very much for your attention to this. It was very helpful in prodding me to keep working at the symptoms. The "Help" file was indeed helpful.
Pete Gum
rick1234
Hmm, that’s not one we’ve seen before – my apologies for the inconvenience. You should not be seeing an earlier version of your form if you have no errors in the code, assuming that you’re not choosing Ctrl+F5 or somehow running directly from the disk – background compilation should always complete before the debugger actually launches. The workaround would be to explicitly choose “build” or “rebuild all” before debugging, but we should check this out. If you would file a bug report at http://lab.msdn.microsoft.com/productfeedback/ with the details, we’ll make sure someone works with you to see why you’re encountering this. Things that would help us pinpoint the cause include:
- Does the problem go away when you restart VS
- Does explicitly choosing “build” first cause the problem to go away
--Matt--*
nka
Oliviertje
--Matt--*
DanSmith2004
Hi Matt,
I'm working with Visual Basic.NET using VS2003 as the IDE. Feedback does not show either as an allowed product for leaving feedback.
Closing and re-starting VS2003 does not help. Build and Rebuild do not help. I checked to see if there are product updates; there are none.
Curiously, enabling a Debug.Writeline shows that the changed underlying code is being recognized. Deletion of controls is recognized but changes to existing controls are not recognized. I removed Label2, which was recognized. Then I put a Label2 back on with different text. Debug mode re-displayed that control, but with the previous text. Putting a completely new Label3 on is recognized.
Specifically then, it looks like changes to the location or text of existing controls is not being recognized.
Pete
Ori'
Hi Matt,
In the forms designer I find this:
Friend WithEvents Label2 As .... (It is a bit curious that Label1 was generated as "Public", but that is probably a hold over from conversion from VB6.)
I found Label2 initialization, with this for example:
Me.Label2.Text=resources.GetString("Label2.Text")
What I can't tell is what is in "resources", which looks like a key question. It is defined under:
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(dlgAcctData))There are just 8 controls on the form and less that 700 lines of fairly simple code. I would be happy to send it to you if that would help.
Pete