• Euphoma@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    Have you seen debugging in an ide, they usually just run gdb / lldb commands

    • Rednax@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      I have barely any experience with raw gdb, but debugging is something that allows for a lot of contextual actions. Even just placing a breakpoint is simpler if you can click the line instead of copy-pasting the line number. But also evaluating expresssions while on a breakpoint, or a graph with an overview of all threads. I doubt these are straight-forward commands in gdb, and if they are, you need to figure out the exact parameters (like line number).

      Furthermore, I have tried raw gdb once, and got super confused as to what I was supposed to do or look at. Yet every IDE makes it trivial to use debuggers. Learning the options available to you is much easier in a well designed GUI.