resolve issue with debug macro stackoverflow:20447661