How to enable Debug in Agent