PDA

View Full Version : UI Debugging Help?


Xavior
17-05-2006, 12:43 AM
I'm developing a relatively elaborate UI Add-on and was wondering what the best way to debug it was.

Being new at this, I only know of the message("text") way of outputing information, but that's way too limiting. What would be the best way to output debug messages within WoW? Ideally I'd like a way to output messages in the chat area or in some external file so that I could analyze larger chunks of data.

Any help with this would be much appreciated!

Tularis
17-05-2006, 01:59 AM
DEFAULT_CHAT_FRAME:AddMessage('message')
adds it to your default chatframe.

I personally just use a (hidden by default) ScrollingMessageFrame made via my addon's xml file to output debugging info into. If I see something going wrong, I simply make it show up and check what hapenned.

Xavior
17-05-2006, 06:34 PM
That ScrollingMessageFrame sounds perfect for what I'd need. I'd need some help to get started with this, though. How do I create this frame in the xml file? And once it's there, how do I output messages to it?

Thanks again!