Click here to Skip to main content
15,881,881 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all.

In my project, I'm facing aproblem when I keep break points. It's showing this message: "The break point will not be hit. The source code is different from original version". How do I solve this? Please give me a valid answer...
Posted
Updated 13-Oct-10 1:46am
v2

Make sure you are in Debug mode. I think I've gotten that message when I forgot to change from Release mode back to Debug mode.
 
Share this answer
 
Generally this happen when solution is already build and in running mode. Then you make any change and add break point.
So stop the running application.
clean the solution,build again.
Then you will not face prob. :thumbsup: :laugh:
 
Share this answer
 
Hi,
clean the solution,build again and try
 
Share this answer
 
v2
Compile your solution/project where you are trying to put this breakpoint.

When it says, breakpoint will not be hit : it simply means that the PDB file for the dll is missing or an old one.
You need to make sure that the DLL last modified date and PDB last modified dates are in sync. PDB files are the one responsible that helps you in debugging.
Clean the solution and rebuild all. This should create a new dll along with PDB. Once done, you should be able to debug it.
 
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