Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Add a "Local Testing / Debug Mode" for HTML5 games in the itch app

A topic by pixelvivor created 18 days ago Views: 3,133 Replies: 4
Viewing posts 1 to 4

Hi itch.io team and community!

As an HTML5 game developer (I'm currently building PIXELVIVOR), I rely heavily on the itch app to test builds. However, uploading a new version just to fix a single line of JavaScript or test a performance tweak is a bit slow.

It would be incredibly helpful if the itch app had a "Local Test" or "Developer Mode" that allows loading a local folder or a localhost port directly into the app window. This would let developers test their canvas games in the exact environment the app provides, without having to upload a new build every 5 minutes.

Has this been considered? Thank you for the amazing platform!

I agree. Sometimes I have to release new updates for a single character of code.

(+1)

Until something like that exists, butler takes most of the pain out of the upload step. It's itch's command line uploader, and it diffs each push against the previous build, so a one line JS fix only sends the changed bytes and goes up in seconds instead of a full re-upload. Something like butler push build yourname/pixelvivor:html5 can sit at the end of your build script so it's one command. The itch app also has a Builds page for pushing with butler now if you'd rather skip the terminal. For the really fast loop I'd still test in a normal browser with a small local server like python -m http.server, since a lot of HTML5 games break when opened straight from file://. Then push only when you need to check the real embed or app behavior. Would be a really nice addition though, hope they pick it up.

(1 edit)

Hey Jeremy, thanks a lot for the detailed reply and the tip! I really appreciate it. 🙏

I completely missed Butler until now, but using a diff-based uploader makes total sense—uploading the whole build just to test a one-line JS fix was definitely getting painful. I'm going to set up Butler and integrate butler push into my build pipeline today.

Also, great point about testing via a local server first. I actually ran into that exact issue early on (CORS/file:// errors with ES modules), so I already use a local server for my rapid iteration loop. But knowing that Butler can push instantly for the final embed test is a lifesaver.

I was also wondering about the speed difference. From what I understand, the terminal/Butler approach is significantly faster because it does a differential sync (only sending changed bytes) rather than a full zip upload through the browser. Plus, running butler push i imagine  that it must take literally faster right from my command line without having to open the itch app or the web dashboard. It's definitely the way to go for rapid iteration.

Thanks again for the help and for the kind words on the suggestion! 🙌

(1 edit)

I would love this feature because a Local Testing or Debug Mode for HTML5 games in the itch app would let developers test builds offline and see console errors and check performance without uploading every change first   PayByPlateMA account