Terminal, Browser & Debugging
Inspect live apps inside the built-in Browser with mobile frames, Remote Browser Cast, SEO audits, managed terminals, wireless phone debugging, Android adb, and a built-in Node.js debugger.
LightCode includes a persistent right-side workspace panel with three modes—History, Terminal, and Browser—that stay mounted as you switch between them so running processes and open pages never reload unexpectedly. Drag the left edge of the panel to resize it anytime.
Integrated Terminal#
Press Ctrl+` (or click Terminal in the top toolbar) to open the terminal panel:
- Interactive shells: Run your own commands directly inside the active project directory (on your local PC or the selected remote SSH host).
- Managed agent terminals: When agents run dev servers, tests, or build scripts, each command runs in a tracked background job tied to the thread. You can watch live output, send keyboard input, or stop any running command directly from the Terminal tab.
Built-in Browser Panel#
Click Browser in the top toolbar to open LightCode's integrated web browser right beside your sessions.
Real browser control for agents#
Agents do not guess whether a UI change worked—they verify it directly in the Browser panel using built-in browser tools:
- Navigate & interact: Open
localhostdev servers (or one-click quick-start dev servers shown on empty tabs), click buttons, fill forms, drag, hover, scroll, and wait for elements. - Read full diagnostics: Inspect DOM snapshots, capture screenshots, read browser
consoleerrors, inspectnetworkrequests/responses, checklocalStorage/cookies, mock API responses, and measure page performance metrics. - Security boundary by default: By default, agents can only open
localhostaddresses in the Browser panel. To allow agents to browse external websites using your saved Browser logins, enable Let agents use the Browser on any website inside This PC settings.
Device frames, geolocation & visual tools#
- Phone & tablet frames: Pick a device frame from the toolbar to test responsive mobile and tablet layouts, rotate between portrait and landscape, and test mobile keyboard overlays.
- Country & locale emulation: Switch the emulated visitor country (adjusting timezone, locale,
Accept-Language, and geolocation) to test regional behavior. - Mockup screenshots & screen recording: Export clean device-framed screenshots or record browser interactions directly from the Browser toolbar.
- Built-in SEO audit & link inspector: Run a one-click SEO check on the current page or hover links to preview their destination URL cleanly at the bottom-left corner.
- Preview on your real phone & Live Remote Browser Cast: When accessing LightCode remotely from a phone, tablet, or secondary browser, you can open local or SSH-tunneled web apps either through the secure preview proxy (
/__preview/…) or through Remote Browser Cast—which streams the live rendered browser page from your desktop, host server, or SSH machine with touch/mouse/keyboard input and automatic quality scaling on slower networks.
Wireless debugging on real phones & tablets (no USB)#
Paired phones and tablets running the LightCode mobile web app can report live diagnostics back to your agents without plugging in a USB cable:
- Automatic console & network capture: Agents read browser console logs, warnings, uncaught errors, and failed network requests from your real device (
device_logs) with sensitive tokens automatically redacted. - Read-only live inspection: Agents can query real viewport measurements, safe-area insets, CSS feature support, and layout overflow directly on your phone (
device_inspect) without injecting arbitrary scripts. - Snippet for external pages: For testing standalone web pages outside the LightCode shell, agents can generate a lightweight one-line debug beacon (
device_snippet) you drop into your dev page temporarily.
Real Android device debugging (adb)#
Connect an Android phone over USB or wireless adb to let agents inspect and debug mobile apps and mobile web pages on physical hardware:
- Check & connect devices: Agents inspect connected Android devices, reverse local dev ports safely to the phone, and open target URLs or Chrome tabs on the device.
- Device & page screenshots: Capture either the full Android screen or the active mobile web viewport.
- Live DOM evaluation: Execute inspection scripts on the Android Chrome tab to diagnose layout or runtime bugs that only appear on real mobile hardware.
Built-in Node.js & Electron debugger#
Instead of scattering console.log statements across backend code, agents can attach directly to any local Node.js or Electron process started with --inspect (for example, node --inspect=9229 app.js or --inspect-brk):
- Breakpoints & stepping: Set conditional or line breakpoints, pause on exceptions, and step over, into, or out of functions.
- Inspect live state: Read call stacks, inspect local scope variables, and evaluate expressions inside a paused frame—all confined safely to
localhoston your machine.