Page MenuHomeFeedback Tracker

Add DumpStack(out string) function
Closed, ResolvedPublic

Description

Please add a function that returns the contents of DumpStack as a string instead of writing it to the logfiles.

proto string DumpStackString();
<or>
proto void DumpStack(out string stack);

This would help with giving other modders more useful error messages.
For example: In the Community Framework mod, we would like to remove internal calls from the stack (by manipulating the output string) so that the user only sees the lines where he did something wrong.

This could also enable a few reflection capabilities because if we know where code is being called from we can look up some basic information in the source script files.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Jul 13 2021, 5:58 PM
Geez changed the task status from New to Assigned.Jul 14 2021, 12:26 PM
Geez closed this task as Resolved.Sep 22 2021, 9:56 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello Arkensor.
The feature will be added in the next 1.14 update.
Regards,
Geez