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.
Asked
Active
Viewed 94 times
0
-
2Put 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
-
1Possible 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 Answers
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