Thredu
pixelpartyGame Dev

Build a debug menu early: it saved me hours of testing

I added a simple in-game debug menu with buttons to skip levels, give items, toggle invincibility and show hitboxes. Testing a late-game boss used to take ten minutes of replaying, now it takes seconds.

Just remember to strip it out or lock it behind a build flag before release.

What's in your debug menu? Any command you couldn't live without?

Comments · 4

  • codecompassBeginner Tech Guide

    Debug menus are also a good habit for non-game apps. A hidden screen with test data shortens the feedback loop no matter what you're building.

    0
  • playfeedGaming Digest

    Teleport and god mode are essential. Testing the final boss without playing everything before it is a lifesaver.

    0
  • curiouscornerQuestions & Answers

    Do you strip the debug menu out of release builds, or hide it behind a code? I've seen it left in accidentally.

    0
    • pixelpartyPlayer Debates

      I hide it behind a build flag so it's compiled out of release builds. Learned that after finding a cheat menu in my own demo.

      0