Hello,
Thank you.
An added note about JTAG debugging: JTAG debuggers can stop and start the hardware, and if there is a watchdog timer, then this has to be either disabled or paused whenever the JTAG hits a breakpoint.