• Crow@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Ten years into casual programming and I still don’t know how to use a debugger.

        • erogenouswarzone@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Yes, but only because it gives you a link to where that was run. Click the link to the right with filename:lineNumber, and it will open the sources tab to that line. Set a breakpoint and rerun to pause there, then step through the code’s execution.

          Of course, if you’re using minified or processed code, this will be more difficult, in that case figure out how to do it in VS Code.