From e834f2ec945511b229495fe22c0742a3d8f3baa8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 12 Sep 2024 12:40:50 +0200 Subject: [PATCH] Hide internal codegen variable from debugger --- Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index bd7a58659..db7bac446 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -1116,6 +1116,8 @@ namespace Flax.Build.Bindings contents.Append(indent).Append('}').AppendLine(); contents.AppendLine(); + if (buildData.Configuration != TargetConfiguration.Release) + contents.Append(indent).Append("[System.Diagnostics.DebuggerBrowsable(global::System.Diagnostics.DebuggerBrowsableState.Never)]").AppendLine(); contents.Append(indent).Append("private "); if (eventInfo.IsStatic) contents.Append("static ");