How to debug when IRQs are disabled for few milliseconds?