Smarter the console debug for variable assigned

Signed-off-by: Richard Lea <chigix@zoho.com>