Skip to content

Commit a6a64fc

Browse files
committed
Show IL offsets
1 parent 8a3fffd commit a6a64fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public static bool IsWorldRunning
7575

7676
static ServerApi()
7777
{
78+
AppContext.SetSwitch("Switch.System.Diagnostics.StackTrace.ShowILOffsets", true);
7879
Dictionary<string, string> args = Utils.ParseArguements(Environment.GetCommandLineArgs());
7980
Hooks = new HookManager();
8081
LogWriter = new LogWriterManager(enabled: !args.ContainsKey("-nolog"));

0 commit comments

Comments
 (0)