Hi Garan,
Essentially, I've been trying to create a simple debug routine so I can output a plugin's variables/tables to the chat window, and after re-investigating the usage of __init__.lua I found a solution for myself using Galuhad's code (though I'm not entirely satisfied with my adaptation).
Regarding your debug window and associated plugins and my coding, I have other questions to ask and will post in the appropriate forum threads.