Add debug macros to track stack usage