How to properly debug?

I’m new at LUA, but every question I ask in “questions” is ignored so I’m asking here.

I am wondering how I go about properly debugging something I’ve written if it’s not working, but I’m getting no errors in game?

I wrote a binary module specifically for this purpose.
http://www.facepunch.com/threads/1005357

Also prints everywhere.