I want to check the value of some variables on screen. For putting strings on screen I use the OnDraw.Windows() function. The variables I want to check are (for example) declared in the function OnUpdate(). For global variables it works perfect, but local variables are out of scope within other functions. I can get around this to make the local variables global (I dislike this because some names are used in more functions, for example the infamous 'i'). The other solution is to assign the local value to a newly created global value. For me this is the less worst solution, but after debugging I have to go through my code and delete (or out-comment) all the debug variables. I hope there is a better solution?