Ignoring breakpoints

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

First of all-I'm running Visual C# .Net. I'm trying to debug my application, but today, the breakpoints weren't working. It seems that it is skipping over all of my breakpoints. This only happens for certain projects within my application. I can't see any settings between the two projects that would make one of them recognize the breakpoints, and one of them not recognize them. If anyone has any suggestions on why this is happening , please let me know ASAP

Thanks!!
 
I've had a similar problem many times.

I'm working on a .NET dll that is invoked from VB6. To run the dll in debug mode, I have my project options -> configuration -> debugging -> Start Action set to "Start external program", and I have that program set to VB6.exe.

When I make any change in the dll and want to test it, I Start it (F5), which rebuilds my project, then opens VB6 and asks me what VB6 project to load. Before I open the VB6 project, I re-register my DLL (using GACUTIL and REGASM).

It's a pain but it works

Anyone have an easier idea?
 
I am not certain that your issue is the same one that I have when invoking from VB6. But if it is, reinstalling will not help.

Bascially, your other code references your current code by it's signature (signature is not the correct term but it will do for this, especially since I can't remember the correct term).

Whenever you make any change in your code - any change, even adding whitespace - the signature of the project changes too.

You have to update the GAC and registry with the new signature or your other code will continue to reference the old signature - and therefore, the older version.

So it's not that .NET is ignoring your breakpoints - it is running a different version of code than the one where your breakpoint exists.

Hope this helps!
 
Back
Top