Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32l0/STM32L052/DBGMCU/CR#0x0
Debug MCU Configuration Register
Debug Sleep Mode
Debug Stop Mode
Debug Standby Mode
https://github.com/modm-io/cmsis-svd-stm32