If I change something in a code, my breakpoint no longer work. It's as if the visual studio compiles the old source code.
The program runs as if the old code/before change works.
Cleaning and recompiling works, however, it's kind of boring. Everytime I change a code I should be able to get a new .exe
I read a similar question "The breakpoint will not currently be hit. The source code is different from the original version." What does this mean?
Notice the question is not entirely similar. Basically the questioner there ask how to fix the problem. I can fix the problem. Just clean the project and run it again. My question is why is this keep happening and how to stop it.
One solution is to ensure that if projects don't compile just run previous iteration. I am very sure that is not the problem. That's because my changes should make the project compile anyway. Also, this screenshot can show that's not an issue.
A good answer would explain to me how this compile really works. Why visual studio compile the old code? Can't visual studio see that I have made changes? In fact, it used to work properly before. Should I reset all visual studio settings? How? Is the problem in my visual studio settings or on the vbproj file?
Is there a way that the encoding of the text files (.vb files) are not proper. I think this starts happening after I edit one of the file outside of visual studio once. I am not sure.