Implement DEBUG OBJECT

Addresses #342
Merge branch 'hotfix/debug_object'