Page MenuHomeFeedback Tracker

call stack for script errors
Reviewed, NormalPublic

Description

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.

Details

Legacy ID
1041698005
Severity
Feature
Resolution
Open
Reproducibility
Always
Category
Feature Request
Additional Information

Or a remote debugger for script/mods/missions, if you're going to dream dream big right?

Event Timeline

Cancerous edited Steps To Reproduce. (Show Details)Apr 3 2013, 3:58 PM
Cancerous edited Additional Information. (Show Details)
Cancerous set Category to Feature Request.
Cancerous set Reproducibility to Always.
Cancerous set Severity to Feature.
Cancerous set Resolution to Open.
Cancerous set Legacy ID to 1041698005.May 7 2016, 1:24 PM

Isn't it the same thing that the -showScriptErrors command does ? (referring to ArmA2, not sure if available in ArmA3)

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

it's possible to add debug info to create your own trace of sorts, I was just thinking it would be convenient of there was a built in method

I got your point :)

Then, upvoting this.
I do agree that it may shorten the analysis time needed to find the damn error source while making missions and mods :)

gdscei added a subscriber: gdscei.May 7 2016, 1:24 PM

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.

dedmen added a subscriber: dedmen.Jun 6 2017, 9:45 PM

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.