Skip to content
Verified

Live preview and console

Run a component as a real session and inspect it, instead of only editing it as a canvas.

What live preview does

The normal UI canvas is for building and arranging a component. Live Preview runs it inside the canvas as a real session instead, so you can see it closer to how a user will actually experience it.

Turn it on

Use the play button in the UI preview toolbar. The bottom console then shows a session count, for example 1 Session, once one is running.

Attach the console to a session

Open the session selector at the bottom of the screen and pick the session you want. A session created from Studio's own preview may be marked Internal. Opening the console before selecting a session just asks you to pick one, it isn't controlling anything yet.

Console controls

Turn on Live Preview

Use the play button, then wait for the console to show at least one session.

Attach

Open the session selector and pick the session.

Test

Capture screenshots, inspect elements, or reload as you go.

Clear between tests

Clear logs before testing the next action, so the result you're looking at is the one you just triggered.