PDA

View Full Version : Debugging



GunbunnyFuFu
September 11th, 2020, 11:48
Sorry for the newb question....I've got an extension that isn't working correctly, and I want to try to debug what's going on (specifically with drag n' drop). How do I do this?

Thanks,

GBFF

LordEntrails
September 11th, 2020, 20:53
First step would be to open the console window using /console in the chat window. Next would be to use prolific print statements. Sorry, I don't remember the exact code to get them in FG xml/lua.

frostbyte000jm
September 12th, 2020, 21:06
I think what you're looking for is Debug.console("blah","moreblah") <- this can be comma separated to have multiple test points. If you need a quick tour, I have a video series that can help a little.

https://www.fantasygrounds.com/forums/showthread.php?61015-Learn-how-to-Develop-with-me