Cannot initialize LPUART1 in STM32CubeIDE on b-l072z-lrwan1?
The pins PA13 and PA14 you are trying to use for LPUART are already in use as the SWD/JTAG pins for debugging, so the debugging stops immediately when you change the pin configuration. Use another set of pins for serial comms or stop using the debugger.