Skip to main content
palsson.gp
Associate
December 4, 2021
Question

CubeIDE 1.8.0 - debug stepping doesn´t work

  • December 4, 2021
  • 3 replies
  • 1784 views

Hi there, I´m using CubeIDE 1.8.0 - I recently updated to the newest release and noticed that debug stepping isn´t working as expected, anymore.

Scenario; I can download my image and it allows me to do a few steps to begin with (from main entry point), then doesn´t return after a step but continues though running the application. I can put in a breakpoint somewhere and it would break, but I can´t do "step into" or "step over" from there.

I haven´t experienced this before, had been using the system workbench - sw4stm32 - with great success, but also recently decided to advance to CubeIDE.

The debugger is ST-Link/V2.

Anyone experienced something similar?

3 replies

KnarfB
Super User
December 4, 2021

Works for me in my use cases. A little more context (MCU, maybe a stripped down main.c) might be helpful here.

hth

KnarfB

Pavel A.
Super User
December 4, 2021

Make sure you build debug configuration, with optimization -Og or -O0

Visitor II
December 28, 2024

Try this:

Run >> Debug Configurations... >> [Debugger] >> Debug probe >> ST-LINK (OpenOCD)