it would be amazing if possible to show a call stack on script errors, rather than just file, error, linenumber if you could provide a command line switch that would cause the debug log to show a trace of the last few executed lines in the last few files. just dreaming.
- Legacy ID
- Feature Request
Or a remote debugger for script/mods/missions, if you're going to dream dream big right?
unfortunately no, a call stack would show not only the file/error/line (like -showscripterrors, or the rpt logs) but also the previous callers so you would know what called the script that errored as well
I agree this would be very nice.
However, I do have my doubts it would be easy to implement. That it is not in there already, probably means that they do not have a way to get the call stack atm in the engine. But that is just my guess.
There is a experimental debugger: https://github.com/dedmen/ArmaDebugEngine
It can automatically halt the game on script Error. And provides a callstack and script variables set on each level of the callstack.
Which seems to be exactly what you want.
It is implemented in https://github.com/X39/ArmA.Studio which adds a nice GUI.