Test and debug

DevTools

Built-in developer tools to debug, profile, and inspect your app without leaving Lyna.

DevTools is a panel of browser developer tools for the preview of your app. Read the console, inspect network requests, measure performance, run audits and check your sandbox, all inside the editor.

What you can do

  • Read console messages and run JavaScript in the preview.
  • Inspect, filter, replay and block network requests.
  • Measure Core Web Vitals and record a performance trace.
  • Browse the element tree and its styles.
  • Run Lighthouse audits on one page or all pages.
  • Read, add and edit cookies, local storage, session storage and IndexedDB.
  • Watch the CPU, memory and disk of your sandbox, and see the machine it runs on.
  • Check code health with Doctor and vulnerabilities with Security.

Open DevTools

Choose DevTools in the bottom bar of the editor, or press Cmd/Ctrl + Shift + I. The panel opens under the canvas with nine tabs: Console, Network, Perf, Elements, Lighthouse, Cookies, Monitoring, Doctor and Security.

If several frames are on the canvas, pick the one to inspect in Inspected frame. Refresh Preview reloads it. Use the header buttons to make the panel larger, full screen, to open it in a new window, or to close it.

On a phone, choose Developer tools in the project menu: DevTools opens full screen, with a back arrow to the preview. Each tab keeps its two main actions in its bar and puts the rest under More actions, the filters open from Filters, and a request, an element or a storage entry opens on its own screen with Back. See Lyna on your phone.

Console

  • Filter by level in All levels: tick Errors, Warnings, Info, Logs and Debug, each with its count, or pick Only errors. The red and amber counters beside it show only the errors or only the warnings. Type in Filter logs... to filter the text.
  • The All levels menu also holds Preserve log (keep messages across reloads) and Invert text filter. In Console settings, turn on Group repeated messages or Show timestamps.
  • Type in Run JavaScript in the preview to run code in the page and see the result.
  • On a message, choose Open in the code editor to jump to its source, or Ask the agent to fix this to send it to the chat.

Network

  • Every request of the preview is listed with its status, type, size and time. Turn recording on or off, and turn on Preserve log in the All types menu to keep requests across reloads.
  • Filter by type in All types: Fetch/XHR, Doc, CSS, JS, Font, Img, Media, WS, Wasm, Manifest and Other. The filter box also takes keys such as status-code:404 or method:POST.
  • Open a request to see its Headers, Payload, Preview, Response, Initiator and Timing. Streaming requests add EventStream, and WebSockets add Frames.
  • Right-click a request to Copy as cURL or as fetch, Replay request, Block request URL or Block request domain.
  • Disable cache and the throttling menu (Fast 4G, Slow 4G, 3G, Offline) help you test slow connections.
  • Export HAR saves the list, and Import HAR opens a saved one.

Perf

  • Live metrics shows LCP, CLS, INP, FCP and TTFB for the page, each rated Good, Needs improvement or Poor.
  • Record and reload records a trace while the page loads. The result lists insights, and Fix with AI sends them to the chat.

Elements

Browse the element tree of the page and search it. Select an element to see its Styles, Computed values, Layout box and Attributes, and copy its selector.

To change the design of an element, use the Styles panel instead: it writes the change to your code.

Lighthouse

  1. Set up the run

    Pick a Mode: Navigation (default) loads the page and measures how it loads, Timespan walks the page by scrolling and keyboard focus, and Snapshot audits the page as it is now. Pick a Device, Mobile or Desktop, and the Categories to check: Performance, Accessibility, Best Practices, SEO and Agentic browsing.

  2. Analyze

    Choose the page with Select page, then Analyze. To audit every page, choose All pages with its count.

  3. Fix the issues

    Read the results in Overview, Audits, RGAA (the French accessibility criteria the audits cover), Pages and Score history, which shows how the scores changed since the last run. Choose Fix N issues with AI, or Fix all with AI, to send them to the chat. Inside one audit, Fix issues with AI sends that audit alone.

Cookies

Switch between Cookies, Local, Session and IndexedDB. Select an item to see its details, edit it, copy its value or delete it. Add cookie, Add item or Add record adds one, and Clear all empties the list. In IndexedDB, you can also Clear store or Delete database.

Monitoring

Watch the CPU, Memory and Disk use of your sandbox, with its uptime. Pick a Time range (1m, 5m, 15m, 30m or All), pause or resume the collection, and turn memory alerts on or off.

The Monitoring tab in DevTools with the CPU, memory and disk use of the project's cloud machine, their health and their history charts.

The machine and its capacity

The header names the cloud machine your project runs on: its processors (vCPU) and its memory, with your plan when you are the one who pays for the project. Each plan runs projects on its own size of machine, and what the header offers depends on yours:

  • Upgrade for more capacity shows when a higher plan gives a bigger machine. It opens the plans without leaving the project.
  • Move to your plan's machine shows when your plan already gives a bigger machine than the one this project runs on. Your files are saved first, then the project restarts on that machine, in about a minute.
  • When the CPU or the memory stays near its limit, a hint under its meter says so, with Upgrade: Running near the limit., followed by what the bigger machine gives. It shows only when that machine has more of what runs short.
  • A member who does not pay for the project reads whose plan sets the machine: the project owner's, or the workspace owner's.

Doctor and Security

  • Doctor checks the health of your React code.
  • Security scans your project for vulnerabilities.

FAQ

Need help?

Ask the team, read what changed, or learn from the blog.