Ported the debug lib, and added hidden field functions to it, but haven't doc'ed it yet.