diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp index b02f2b73c..93d3dfa98 100644 --- a/lib/config/expression.cpp +++ b/lib/config/expression.cpp @@ -560,7 +560,7 @@ void WarnOnImplicitlySetGlobalVar(const std::unique_ptr& setLhs, con if (var && setLhsParent.IsObject()) { auto ns (dynamic_pointer_cast(setLhsParent.Get())); - if (ns && ns == ScriptGlobal::GetGlobals()) { + if (ns && ns == ScriptGlobal::GetGlobals() && debug.Path.GetLength()) { const char *opStr = nullptr; switch (setOp) {