MostTornBrain
March 12th, 2022, 04:07
Hi,
I have an extension under development that is misbehaving when my campaign launches. The "/debug on" chat feature is very handy as it shows the Lua call stack when an error occurs rather than just the single line that caused the error, however, since the issue happens before I can type anything in the chat window, I can't get the details of how my function got triggered. Is there any way to launch a campaign with this debug mode enabled so I can see more details about how one of my functions is getting called on launch?
Thank you for any clarification.
Cheers,
Brian
PS: I can't find any documentation on the /debug chat command and can't remember how I learned of it. I think I might have accidentally stumbled across it when I misremembered the chat command for bringing up the debug console (i.e. /console) and I typed "/debug" instead and got a message that came back "Usage: /debug on|off". It's extremely helpful as a debugging aid, both with the call stack info and the reporting of element details as you hover over them.
I have an extension under development that is misbehaving when my campaign launches. The "/debug on" chat feature is very handy as it shows the Lua call stack when an error occurs rather than just the single line that caused the error, however, since the issue happens before I can type anything in the chat window, I can't get the details of how my function got triggered. Is there any way to launch a campaign with this debug mode enabled so I can see more details about how one of my functions is getting called on launch?
Thank you for any clarification.
Cheers,
Brian
PS: I can't find any documentation on the /debug chat command and can't remember how I learned of it. I think I might have accidentally stumbled across it when I misremembered the chat command for bringing up the debug console (i.e. /console) and I typed "/debug" instead and got a message that came back "Usage: /debug on|off". It's extremely helpful as a debugging aid, both with the call stack info and the reporting of element details as you hover over them.