From bfe12f0399d400ce58ef83748f71abb6cf2c4502 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 15 Sep 2024 13:08:03 -0400 Subject: [PATCH] Do not enforce cost limits when debugging --- src/Tgstation.Server.Host/Core/Application.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index 0cc7d0fb2b..df797a5518 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Frozen; using System.Collections.Generic; using System.Globalization; @@ -301,7 +301,12 @@ namespace Tgstation.Server.Host.Core options.EnsureAllNodesCanBeResolved = true; options.EnableFlagEnums = true; }) +#if DEBUG + .ModifyCostOptions(options => + { + options.EnforceCostLimits = false; }) +#endif .AddMutationConventions() .AddGlobalObjectIdentification() .AddQueryFieldToMutationPayloads()