Skip to content

Test Your App in Live Preview

Check the running app at phone, tablet, and desktop widths and diagnose failures from the console.

Live Web Preview runs your Studio app as you build it. Use it to check behavior after a code change, test different widths, or reproduce a runtime error. The widths change the layout space inside the preview; they don’t replace testing on a physical device.

Check a change in the running app

Studio compiles the preview in your browser with WebAssembly through WebContainer. Preview hot-reloads as project files change, so you can test many edits without opening another tab or manually refreshing. Some updates can retain form input, the selected tab, or the current client route. If state matters to the test, check what stayed intact and run the same interaction from a fresh load.

Use Refresh in the hotbar when you need that fresh load. If the Studio panels make it hard to judge the app at its available width, use the pop-out control to open the running app in a standalone browser tab.

Test the layout at three widths

Select a viewport in the hotbar. Check the same screen at each size so you can compare what actually changes.

ViewportWidthWhat to check
Mobile375 pxOn a phone-sized screen, check that navigation, buttons, and form fields fit without horizontal scrolling.
Tablet768 pxCheck where columns or cards wrap. Look for controls that disappear or run into nearby content.
DesktopFluidCheck the layout at the available width. Use the pop-out tab if you need more room.

Don’t stop at the initial screen. Open a menu, switch tabs, or type into a form at each relevant width. If a control fits when it’s closed but overflows when it opens, you’ll only see that by trying it.

Follow a runtime error to its source

Reproduce the issue

Reload the preview if necessary, then repeat the action that fails. Note the route, input, and viewport if they affect the result.

Read the console

Open the bottom drawer and look for console.log output, runtime warnings, and exceptions. Find the error that matches the interaction before you pick a fix.

Test the fix

If the error offers Auto-Fix with Bhai, use it to ask for a diagnosis and fix. Review the resulting edits and rerun the interaction in Preview before keeping the change.

Next

Was this page helpful?