I have this problem where it takes me hours of just figuring out the bug on the game I am trying to do.
Most the debugging method I do is that I just put a
Debug.Writeline()
on code that I suspect is the culprit. This is obviously becomes confusing when the project becomes larger and theres more class involve and passing things to other class.. The other way is that I use a break point. But what if the bug happens just in the middle of the game? It will take a thousand loop just to get there and break point is not really a good option for that i think.
For all game programmers out there. What is your best way of figuring out the bug in your project?
PS: I am using C#/XNA and Visual studio 2013