Link to home
Start Free TrialLog in
Avatar of Mymail cpn
Mymail cpn

asked on

C# class library debugging - Breakpoint will not hit.

Hi

I am having problem where my breakpoints will not hit on certain methods of a file. ( till will hit properly on some other methods of the same .cs file).

I am using VS 2015 and trying to debug my class library.

Can some one help me figure this out? Thanks in advance.
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Sounds like you never call those methods.
or a running against a different version of said class library.
Avatar of Mymail cpn
Mymail cpn

ASKER

I am calling that method because, I could see the output on the screen.
How can I see which version of the class library that I am running? What I did was, I build the class library project and referenced it on my main project. This makes it the same version right?
You say some methods will hit the breakpoint but others won't.  That still sounds like you use the same class library but don't call that method, or at least the code in the method where you have the breakpoint.

>>I am calling that method because, I could see the output on the screen.
Put the breakpoint on where you call the method and then step into the method rather than having the breakpoint in the method.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you Andy, with your help I was able to solve it.
Thank you very much.