add debug attribute to v2 apps