VS 2008: breakpoints are not hit

Hi,

I am runing Visual Studio 2008 solution in Debug mode, however, it doesn't stop on breakpoints I am placing.
What can be the reason?

Thank you in advance.
quasar_eeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
Have you tried a complete rebuild (not build) of the application?
0
LordWabbitCommented:
Check that the solution is rebuilding the project, it might have been set to not build for some reason (right click properties) so the symbol files are out of date.  Also check that the references are to the project reference not a dll reference.  Best way to do that (AFAIK) is toremove them and add them back manually.  Take a screenshot before you start removing stuff, for later reference.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sarabandeCommented:
to add to above suggestions:

- you may look if the last build was successful. if - for example - you had a linker error, you might run an older copy of the program and the debugger would not attach.
- set the first breakpoint to main or _tmain function (or YourApp::InitInstance for a mfc project).
  + if it breaks there, check the breakpoints you have set into other sources and check whether the bullet
     icons are full or have a exclamation mark such that they were not up-to-date and cannot be hit. if so,
     you should check whether the source is the one which was included in the build (check the file path by
     hovering the tab of the edit window for the source). if that is all ok, try to move the breakpoint not hit
     up to the first if or while condition of the function. if that doesn't help, check where the function was called
     and set breakpoints above the blocks where the functions were called. repeat the action until you
     reach the main function.
  + if it doesn't break, check whether the .exe file of your project is up-to-date and that the breakpoint bullet
     in main is really active.

Sara
0
CodeCruiserCommented:
Can you show us a screenshot of the breakpoint while in debug mode? Even better if you can include the tooltip that shows when you point your cursor at the breakpoint.
0
Kamal KhaleefaInformation Security SpecialistCommented:
click Clean the rebuild

or close the project and re open it
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.