Add debugging options to code generator targets

Change-Id: I9cf95339a4d74c6c6a0f225557e20ca4c22f551a