• Scrath@feddit.de
    link
    fedilink
    arrow-up
    54
    arrow-down
    1
    ·
    11 months ago

    Try debugging a distributed embedded real time system which crashes when you are in a breakpoint too long because the heartbeat doesn’t respond

    • Croquette@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      11 months ago

      Working with Nordic Semi Bluetooth Stack was like that when working with it a few years ago. If you reach a breakpoint while the Bluetooth stack was running, it would crash the program.

      So printf to dump data while it ran and only break when absolutely necessary.

        • Croquette@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Yeah. I mostly code in C because the tools come natively in C. I also do python and C# to create tools for my embedded projects.