blugatch.tube
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sellingspams@feddit.de to Programmer Humor@lemmy.ml · 2 年前

6 stages of debugging

i.imgur.com

external-link
message-square
27
link
fedilink
437
external-link

6 stages of debugging

i.imgur.com

sellingspams@feddit.de to Programmer Humor@lemmy.ml · 2 年前
message-square
27
link
fedilink
alert-triangle
You must log in or # to comment.
  • DonjonMaister@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    2 年前

    Stage 4.5: console.log() everything.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 年前

      And then the logging fixes the subtle timing issue causing the problem.

      • V699@kbin.social
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        Race conditions are the worst

        • zqwzzle@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          Good ol’ Heisenbugs.

    • danc4498@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 年前

      We have logging software built in, but I can never remember how to turn it on, so I just console.log

    • 0x4E4F@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 年前

      Step 4.6: Get another drive for the logs.

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    2 年前

    console.log("Does it happen here?")

  • axtualdave@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 年前

    Everyone always skips the last step, but that’s where you learn.

  • fubo@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 年前

    “I notice that I am confused, and thus that one of my beliefs is fiction.”

  • z500@startrek.website
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    Every time that last part happens I have to check the proper spelling of Berenstain. I’ve had some that really seem like they should have been impossible lol

  • dan1101@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    How did that ever work, I’ve been there many times.

  • Rhaedas@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    I have some Excel VBA scripting that I’ve been on 1-4 for a while now, so there’s a branch off of 4 that should be “fuck it, here’s the workaround” or “that part isn’t that important anyway, ignore it”.

    (it’s actually not Excel that’s the problem, it’s the change to its call to IE that throws up a stupid security warning.)

    • chaorace@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Oh my god this comment gave me an aneurysm

  • macgregor@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    Get enough experience and you just have a brief moment of stage 3 as you dive straight to stage 4.

    Unless it’s a customer/that-one-guy-at-work (it’s a title, but there’s usually a handful of them) and then there’s this vast stage 0 of back and forth of “are you sure that’s happening, run these commands and paste the entire output to me” to be sure of what they are saying then you jump to stage 3/4.

    • V699@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      I jump straight to step 6

  • DarthYodaX@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    2 年前

    My boss does 1 <–> 2 with us over most every bug any of us has ever found. Ticking time-bomb…

  • kriss0706@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    2 年前

    its funny i see this now, after spending 3 hours debugging D:

  • PtitSerpent@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    2 年前

    if (0 === 0) {
    var_dump($test); die;
    }

    • t҉̠̙ǵ̣̞̄ͪ͜x̸̱͚̳ͫ͐̑̈ͯͣ̚n̒͌҉͉̦̜̝ͅ@lemmy.tgxn.net
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Ahhhhh, PHP… 😭

    • perviouslyiner@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      if ((x != x) || (x == x+1)) then it’s one of those weird numbers

  • ShustOne@lemmy.one
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    2 年前

    As true as true can ever be

  • egeres@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 年前

    Stage 7: Who wrote this?

    Stage 8: Ah ok… it was me

  • ZcaT@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

    Has it ever!?

  • silly . lil . jester@lemmygrad.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

    6 stages of dev grief when I find a bug which doesn’t make sense and report it to the devs. Lol.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 122 users / day
  • 1.54K users / week
  • 2.99K users / month
  • 9.4K users / 6 months
  • 1 local subscriber
  • 37.2K subscribers
  • 1.81K Posts
  • 39.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org