Hi @Miguel04
Thank you for the suggestion.
In fact we tried the serial print solution, but it slowed out process and therefore interfered with the rapid flow.
Actually we found the infinite loop that was triggering the WD: we disabled the WD and ran the code in debug mode while having the debugger connected to the micro controller. The hope was that the issue would appear, got the device stuck in the infinite loop and by using the debugger and the MCUxpresso we could pause the running code and see where the code was. So we let the device ran and eventually it got into the while and we figured the issue.
But it would be very helpful if we could use the WDT interrupt to store more info of a future infinite loop. Our project is always evolving and it may need this helpful tool to debug the device running.
For instance we got an IO pin toggle in the WDT interrupt just to test if the interrupt would be triggered after a WDT reset and it was, but the main question remains: what should be stored for future analyses in such a few number of clock pulses?

Looking forward to see what would be your outcome after your research .
Thank you for the support
Regards