store debug data using a local variable #1239