• Haus@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Bad variable names and then awful “temporary” log lines… I feel attacked this morning. ;)

  • elxeno@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago
    var num =0
    ...
    console.log("Here " + num++)
    ...
    console.log("Here " + num++)
    
  • sebi@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    This is a professional debug techique, what are you talking about? But I rather use ‘Hii’ with various (but not ascending) amounts of i’s.

    • dbilitated@aussie.zone
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ve used a regex to add a console log to the top of every method with the method name before.

      the things you do when you’re desperate.