13.8.5.6 Debug Operation
When the CPU is halted in debug mode, the PM continues normal operation. If standby sleep mode is requested by the system while in debug mode, the power domains are not turned off. As a consequence, power measurements while in debug mode are not relevant.
If the Backup sleep mode is requested by the system while in debug mode, the core domains are kept on, and the debug modules are kept running to allow the debugger to access the internal registers. When exiting the Backup mode upon a reset condition, the core domains are reset, except the debug logic, allowing users to keep using their current debug session.
Hot plugging in standby mode is supported, except if the power domain PD2 is in retention state.
Cold or Hot plugging in Backup mode is not supported.