Improved debug output of Core::SetVariable()