use local variable for storing debugging data
Merge pull request #1247 from dali/master

use local variable for storing debugging data