inject debugging code