Re-added a variable that was removed because it was unused in release builds, but this time in a DEBUG-only scope.
Re-added a variable that was removed because it was unused in release builds, but this time in a DEBUG-only scope.

jfroy/rivenx,jfroy/rivenx,jfroy/rivenx,jfroy/rivenx