Debug Breakpoint

Is there a way to get breakpoints if the action is called by the Visual Studio debugger? For example, suppose I have the following (I know you shouldn't do this just by using it for an argument):

public class Test
{
    int _X = -1;
    public int X { 
        get { return ++_X; } //Breakpoint here
        set { _X = value; } 
    }
}

and

static void Main(string[] args)
{

        Test t = new Test();
        t.X = 1;  //Breakpoint here
        return;
}

Main, , "t.X", ( , "" - " " ) "" - , "" . - "get", ?

+3
2

FuncEval, FuncEval : Mid Func Eval, Nested Break States Mr. SteveJS. , , VS2005, , FuncEval, " " "" " ". ,

?t.X

"" .

+2
0

Source: https://habr.com/ru/post/1733827/


All Articles