bug: Debugger.Break() doesn't work
I've made a Class and in the Property Getter i'm calling Debugger.Break()
the breakpoint is not hit when displaying a list of these class instances.
1
vote
Martin Kirk
shared this idea
-
Anonymous commented
You have to have one of the debugging options enabled for this to work. i.e "Break when exception is unhandled" (Ctrl+U) or "Break when an exception is thrown" (Ctrl+').
This is because Debugger.Break() relies on a debugger being attached.
-
Martin Kirk commented
public class Passport
{
public bool IsValid {
get
{
Debugger.Break();