Docs menu Inspector
The Inspector
Last updated 2026-11-21
The Inspector is a test page on FreeGames.gg. It runs your build in the same game frame players see, with test ads in place of real ones, and shows everything your game tells the page.
Run your build
- Serve your build folder. On your own computer,
npx serve .inside the folder works. - Open the Inspector and paste the build’s address, like
http://localhost:3000/. - Press Run, and play.
Addresses on your own computer (http://localhost and http://127.0.0.1) work. Anything else must start with https://. To test on a phone, the Inspector shows a code to scan.
What it shows
- An event log: every SDK call your game makes, with the time since the frame started, and the page’s answers.
- Warnings for calls in the wrong order, like
gameplayStart()twice in a row (see Events). - Errors from your game: uncaught errors, unhandled promise rejections, and lines from
error.log(). - Numbers: time to
init(), toloadingFinished()and to the firstgameplayStart(). - The load checks from the check report, each with pass, fail, warn or skip.
Test ads and screen sizes
- Break ads and rewarded ads each have three modes: show a test ad, no ad, and an ad blocker. Try all three: your game MUST go on in each.
- Screen sizes: fit, phone, phone sideways, tablet, 1366 by 768 and 1920 by 1080.
- Pause, mute and reload buttons send your game the same events the page sends.
Invites and failures
- Invite: type a room id and press Open with room. Your game reloads with
?room=<id>in its address, as when a player opens a link frominvite.getLink(). - Join as a friend: after your game calls
invite.getLink(), this reloads it with that room, as the friend who opened the link. Open as a friend in a new tab gives you a second player in the same room. - SDK calls fail: every call but
init()answers as when our servers are down: no ad,save.get()givesnull,save.set()givesfalse, scores are refused, no invite link. Your game MUST go on.
Each switch writes an “inspector” line in the event log, so you can tell why your game got what it got.
The same checks as an upload
After you upload, our server opens your build in this same page, in headless Chrome, on desktop and on a phone profile. A page can’t see another site’s downloads, so a few checks only run there: the initial download, memory, outside requests and ads, leaving the page, filling the frame, sound that stops on mute, and saves that come back after a reload. The Inspector marks those as checked when you upload.