Solved

VS 2005 breakpoints not working - Urgent

Posted on 2006-10-19
6
324 Views
Last Modified: 2010-04-23
VB.NET 2005 with Visual Studio Tools for Office and VS 2005 Pro
Breakpoints simply aren't breaking even when enabled and the application is compiled in Debug Mode.

We've had multiple hands into this Single Solution / Three Project application.  Breakponts were working at one time but....   Going back to old code simply isn't an option right now.
What I've tried:
1.  Deleting all Bin\Debug folders content and Rebuilding the entire solution.
2.  Deleting all bin\Release folders content and verifying that nothing ever gets recreated.
3.  Cleaning the solution and rebuilding it.
4.  Copying solution to a new folder.
5.  Copyng solution to a different machine.

I'm starting to suspect that someone turned off an option (other than the Compile Mode) that might affect Breakpoints.

Any thoughts?

Thank you.




0
Comment
Question by:RichardKline
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:Kinger247
ID: 17764528
Remove the obj folder, always works for me.
0
 
LVL 1

Author Comment

by:RichardKline
ID: 17766121
I envy you :)

Nope,  Removing the obj folders didn't help -- still a problem.

Thanks, though!
0
 
LVL 10

Assisted Solution

by:Kinger247
Kinger247 earned 400 total points
ID: 17766252
Normally if the break points aren't being hit, its because the code your working with isn't the same as the pre-compiled code in the dev environment.
So by removing the obj's ensures the latest versions when you next build.

But if your having the same problem still, I'd look to creating a new project and copy all code (not files) across, then re-build and run to see what you get.
Bizare one, you got there.
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 34

Accepted Solution

by:
Sancler earned 100 total points
ID: 17766329
I cannot check this out in VB.NET 2005 because I only have the Express Edition which (as I've only just discovered) does not seem to support the Configuration Manager for builds.  But it is listed in the 2005 Help Files, so I assume the higher versions - like your Pro - must have it.

In 2003 it is, using the Configuration Manager, possible to set a Release configuration for a Debug build.  That would produce the symptoms you are describing: that is, no breakpoints being hit even when run in Debug.

So I suggest you have a look at this

    http://msdn2.microsoft.com/en-us/library/kwybya3w.aspx

and see whether, in your set up, that is what has happened.

Roger
0
 
LVL 1

Author Comment

by:RichardKline
ID: 17772607
Roger,  I tried....  That link was informative and I think akin like that originally happened but, if so, then the original debug settings were altered and not a new configuration.  Also, the "someone" must've been creative as the configuration manager (build select) was not, at that time, even available on the workstation.

Kinger, it's time to bite the bullet and recreate the project using the technique you mentioned.  Creating a new project, copying code text in one module at a time and testing at each step.

I was orginally afraid that it would come to that but... oh well!

Thanks!
0
 
LVL 10

Expert Comment

by:Kinger247
ID: 17772637
There are some really annoying things in the vs ide, and this is one of them !
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Groupbox Control ? 2 39
Create a Dropdown list with sub group 10 43
vb.net make textbox not visible after 1 minute elapsed 6 26
MessageBox Appear behind a form in Runtime 1 30
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question