debug g code ref