Breakpoint is one of the most useful tools in debugging.
http://en.wikipedia.org/wiki/Breakpoint
In Visual studio, just hit F9 to toggle a breakpoint on the line with the caret. The program then pauses when it reaches the line, and you can see all sorts of things about it - what functions have been called to lead to that point, their parameters, what are the variables' values etc. Obviously you need to do that in Visual Studio and you need a debugging version of MCServer for that.
http://en.wikipedia.org/wiki/Breakpoint
In Visual studio, just hit F9 to toggle a breakpoint on the line with the caret. The program then pauses when it reaches the line, and you can see all sorts of things about it - what functions have been called to lead to that point, their parameters, what are the variables' values etc. Obviously you need to do that in Visual Studio and you need a debugging version of MCServer for that.