From: jpbruyere Date: Wed, 3 Aug 2016 10:07:32 +0000 (+0200) Subject: debug.print only when debugging binding X-Git-Tag: v0.4~18^2~14 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=67e7fb13097a23c8865dc0e0d36baa49548279a7;p=jp%2Fcrow.git debug.print only when debugging binding --- diff --git a/src/CompilerServices/Bindings.cs b/src/CompilerServices/Bindings.cs index b7967a91..397ec39d 100644 --- a/src/CompilerServices/Bindings.cs +++ b/src/CompilerServices/Bindings.cs @@ -168,7 +168,9 @@ namespace Crow Target = new MemberReference (tmp); } if (Target == null) { + #if DEBUG_BINDING Debug.WriteLine ("Binding Source is null: " + Expression); + #endif return false; } @@ -182,7 +184,9 @@ namespace Crow return true; } + #if DEBUG_BINDING Debug.WriteLine ("Binding member not found: " + member); + #endif Target = null; return false; }