Show current instruction for debugging infinite loop

maoravni
2021-08-17
2021-08-17
  • maoravni - 2021-08-17

    My code has a reproducible case of infinite loop, but it only happens when running without any breakpoints.

    The observed behavior is the freewheeling task is not finishing.

    Debugging by setting breakpoints "fixes" this behavior. When I press "STOP" the application stops.

    I couldn't find any way to debug this - show me where the freewheeling task was executing before stop.

    Is there any way to break at the infinite loop (which I don't know where it's located in the code...)

     
  • Ingo

    Ingo - 2021-08-17

    Did you try to define a watchdog for the task?
    Usually an expired watchdog should show you the endless loop:
    https://www.youtube.com/watch?v=Aeihipp6U4I

     

Log in to post a comment.