Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a strange one here. I am using VB.Net 2008. For some reason my breakpoint is not working. Where it gets strange is that it only seems to be affecting one form. I can put a breakpoint on this form, it ignores it. Even changed some code, ignored it i.e. put a message box in. On the other forms works no problem.

Any ideas before I put my foot through the monitor.
Posted
Updated 2-Apr-17 15:38pm

Hi,

The reason was that for some reason your source code is different from the original version.

To allow the breakpoint to be hit when the source code is different, you right click on the breakpoint, choose location..., and turn on Allow the source code to be differenet from the orginal version.

To allow this for all breakpoints, disable the option 'require source files to exactly match the original version' under Tools, Option, Debugging, General.

Hope this helps.
 
Share this answer
 
Comments
Calle 62 3-May-14 5:31am    
I just happened to get the same problem, and after a good one hour trying to solve the problem, I discovered what was the problem for me. When testing my solution I change the date on the computer and at the same time made a build with different date. After that change date back to the previous.

After changing back the date I got all the time this message. Solution waste delete all files VS is creating during the debug or build from the debug and release directories. Now the debugging was working as normal again.

Hope nobody else need to use hours to find this out.
it look as if you have run Older version of code (last successful run)
Just Press Crtl + Shift + B for build the code.
and check if any error list present. if yes then solved.
 
Share this answer
 
Comments
Central_IT 9-Aug-11 9:39am    
Afraid that never worked. Even tried an earlier version of the project.
Member 14173502 29-Mar-19 10:17am    
Crtl + Shift + B ===> Solved it!!
A useful link here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900