0

I want to add a breakpoint for a whole class and not only for a function, so I can see if the class will be used.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
  • 2
    Put a breakpoint on the constructors. If there are no constructors then add a parameterless constructor and put a breakpoint in there. – Wai Ha Lee Feb 04 '19 at 09:57
  • And one in each of the class's properties and methods. – Haukinger Feb 04 '19 at 10:00
  • 1
    Possible duplicate of [How do I set a breakpoint on every access to a class](https://stackoverflow.com/questions/3565694/how-do-i-set-a-breakpoint-on-every-access-to-a-class) – Peter B Feb 04 '19 at 10:00

1 Answers1

0

Add a breakpoint to the constructor(s). If one doesn't exist create an empty one for this purpose. E.g.

public class Example
{
    public Example()
    { // Breakpoint goes here.
    }
}
Daniel Mackenzie
  • 204
  • 3
  • 14