If STM32L0 spends most of the time in STOP mode and I haven’t set any breakpoints, it seems impossible to break-in.
VisualGDB shows window “The GDM break-in request is taking too long to complete”.
I’ve googled this problem and for everybody adding a line with
HAL_DBGMCU_EnableDBGStopMode();
but not for me.
Adding this line doesn’t change the behaviour of VisualGDB at all.
And also “Live Variables” breaks and shows garbage if the CPU spends most of the time in STOP.