Implement proper debug support for Zotero