- Docs
- Get started
The Test console
A phone has no developer console. The Test console puts one on the page: what the SDK is doing, what the browser reports, and a Copy button, so you can send a log when something does not work.
Turn it on
Add ?test to the address of any page that uses Tempusxr, for example https://my-site.com/index.html?test, and reload. A small bug icon appears. In the default interface it sits in the right-hand column of buttons, just above Quit; with an interface of your own it floats in the top right corner.
Tap it to open the panel.
What you see
- Readings at the top, refreshed twice a second: the state, whether the target is seen, the camera size, and for a world experience where the surface came from (hit test, plane, depth sensor or manual placement).
- The log: the phone and browser, whether WebXR and WebGL work, and each thing the SDK does (loading, targets found and lost, the scene's behaviors, errors, and the browser's own
consolelines). - Three buttons at the bottom: Copy (the whole log to the clipboard), Clear, Close.
Send a log
- Reproduce the problem with
?testin the address. - Open the Test console and press Copy.
- Paste the log in a message to the team, with the phone model.
If the clipboard is blocked, the log is selected: copy it by hand.
Good to know
- Lines you will see often:
AR session started. Granted: ...(what the phone gave a world session),3D layer: ...(photo and video capture),targets: poster: SEEN. - The console works inside an AR session too. A tap on it never places content.
- To switch it on from code:
import { attachTestConsole } from '@tempusxr/sdk-core'andattachTestConsole(overlayElement).