I never advise hacks for production code. Either it is first class support or it doesn't get used.
Adding extra layers to debug only increases production costs.