问题
For example, I have the following code,
Variable.Method1().Method2();
I want to set the breakpoint after Method1() and before Method2(). Can I do so in visual studio? How to do it? Thanks.
回答1:
That won't work, but this will:
var result1 = Variable.Method1();
result1.Method2(); //set breakpoint here
Otherwise set a breakpoint at the first line of code on Method2 and then you can keep using that one line of code.
来源:https://stackoverflow.com/questions/15942830/how-to-set-a-breakpoint-at-the-middle-of-a-line-of-c-sharp-code