Skip to content

Debug a Failing Web App with Built-In Browser and Agent Logs

2 min read

When a coding agent builds a frontend feature, tests often pass in the terminal while runtime errors silently break the user interface. Debugging these issues usually means context-switching between your code editor, a separate browser window, developer tools, and terminal output. This guide walks through a streamlined approach to catch and fix frontend bugs by keeping your local dev server, browser view, and agent logs visible in one window.

Set Up Your Workspace Layout

To debug effectively, you need your tools visible simultaneously without overlapping windows. Split your workspace into terminals side by side where your GPU-accelerated terminals run your development server and your coding agent.

Open your local dev server and test pages right inside your workspace next to the terminal that runs them. Using a unified view keeps your workflow anchored. Here is a typical setup:

+------------------------+------------------------+
|                        |                        |
|   Terminal (Agent)     |   Built-in Browser     |
|                        |   (http://localhost)   |
|                        |                        |
+------------------------+------------------------+
|   Terminal (Dev Server)|   Agent Logs / History |
+------------------------+------------------------+

When you work this way, you can trigger a change in the agent terminal and immediately see the results render in the browser panel without moving your focus to a different application.

Reproduce and Inspect the Frontend Error

With your dev server running in one pane and the app open in the built-in browser next to it, interact with the new feature that the agent created. If a button fails to trigger an action or data fails to render, check the browser tab for unhandled exceptions or network request failures.

When an error appears, you do not need to guess what the agent attempted. You can review what Claude Code did and what is still pending by checking the log history, which keeps track of your prompts, the agent's summaries, the files it touched, and its tasks grouped by day with dates and times.

Open this log from the header or use Shift-Command-H. This lets you match the exact timestamp of a broken UI interaction with the code changes the agent made moments before.

Feed Context Back to the Agent

Once you identify the failing component or network call from the browser view and trace it back through the agent's modified files in your log history, you have exact context to feed back into your session.

Instead of vague instructions, point the agent directly to the symptom:

# Example instruction based on browser inspection
<agent-command> Fix the null reference error in src/components/UserProfile.tsx when the API returns an empty response payload.

As the agent works on the fix, keep an eye on the sidebar status. Each terminal running a coding agent shows live status: needs input, working, or done. You can glance across projects and jump straight to the terminal that is waiting for your approval before it pushes changes or runs destructive commands.

Verify and Mark Work Complete

After the agent applies the patch, your local dev server will hot-reload the changes. Refresh your view in the integrated browser to confirm the UI functions correctly and console errors disappear.

Once verified, open your session history log, add any remaining cleanup tasks of your own, and mark the work as verified so your project history remains accurate for your next coding session.

Next Step

Open your current project in Tidepane, split your view to place your dev server terminal next to the built-in browser, and test your agent's latest frontend build.

Tidepane brings terminals, a browser and your coding agents into one window. See what it does.