Skip to main content

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

Is there a way to debug a browser game? (console, devtools, ...)

A topic by supernapie created Jun 09, 2021 Views: 1,343 Replies: 3
Viewing posts 1 to 4

I develop mainly browser games with just javascript. Most games run fine, but sometimes i have some smaller bugs, which don't appear in Chrome. Sometimes things are just a little different in the itch app.

Two examples:

- focus/blur events of the window, used showing a pause screen

- no javascript window.prompt

It would be nice if i could debug these with a javascript console. Is there such an option in the app? Or do i have to try it in the version of the app which is on github?

(1 edit)

Have you tried Ctrl+Shift+I? That seems to have worked in other Electron programs, last I tried.

Thanks for the reply, but doesn't work.

From https://itch.io/docs/itch/hacking/help.html it seems `Shift+F12` does the trick!