Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breakpoints being ignored? 1

Status
Not open for further replies.

PeteG

Programmer
Feb 23, 2001
144
GB
Hi,

My IDE (Visual Studio .Net) has just started behaving strangely re breakpoints. I can set them OK but execution does not break when it reaches them. they all look OK and enabled but they just seem to be ignored. Any ideas anyone?

I can't think of anything I have done recently which may have affected this...

Cheers

Pete
 
I had this problem, too. Start by getting Service Pack 3 (or is it 2) for .NET. The actual problem is *something like* "the code is executing, but the display in the IDE is not matching the code", I can't quite locate the bug report, but this is confirmed and fixed with the latest .NET SP. -
hope this helps - Ben
 
Thanks, but I thought I had SP2. My problem just started happening, all was OK until yesterday!

I have version 1.0.3705.288 of the .Net Framework and I THINK that is SP2. Looking on Microsofts site, all I can confirm is that I do have a service pack installed - but I can't tell for sure whether the above version is SP1 or SP2 - can anyone confirm what sp this version relates to?
 
Hmmm, I know I've had the non-SP version of this problem as well.

Did you add modules and not set dependencies? I did that awhile back and it caused me grief.

I've also had a wierd condition where my build actually failed, but I wasn't aware of it - wish I could remember the circumstance. But... if your breakpoints aren't getting hit, (and you're SP'd up to date), then it would seem it *has* to be that you're not actually executing the source code you're looking at.

 
Bearing in mind what you said, I re-installed SP2 and now it works again! I have the same version (1.0.3705.288) as before but now all is OK.

Thanks

Pete
 
Hi,
Thought I'd bring this topic back as it didn't take long for my breakpoints to start being ignored again - and it has also happened to one of my work colleagues.

It's a little restrictive (!!) not being able to debug properly - I'd really appreciate it if anybody can throw any more light on this subject.

Cheers

Pete
 

This is how I correct the problem.

In the solution window, right click the project that is not debugging correctly and select "Properties".

Click on the "Configuration Properties" folder and then click on "Build".

Click the dropdown list on "Generate Debugging Information" and select FALSE. Click the APPLY button.

Click the dropdown list on "Generate Debugging Information" and select TRUE. Click the APPLY button.

Click OK. Compile and run.

This seems to happen out of the blue and I have not found a way to correct the problem.

-Matt-
 
Just tried that but unfortunately it doesn't seem to work for me.

Thanks for the advice though
 
I think I must be having some conflict with versions of .Net Framework. I've just re-installed SP2 and my breakpoints are being noticed again....now I'm just waiting for them to start being ignored.....again

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top