> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Console

> Learn how to use the Console to see your app's output, errors, and activity logs.

Console lets you monitor and review logs printed by your running Replit App in real time.
You can use information from current and past runs to understand your app's behavior,
troubleshoot errors, and optimize performance.

> [!TIP]
>
> When debugging using Agent, include console logs in your prompt to provide context.

This example shows Console before a workflow has been configured or run.

![Project Editor with the Console tab and empty-run controls highlighted against a dimmed background](https://mintcdn.com/replit/wJq4JbP813QUyZ7T/images/workspace/console-tool.png?fit=max\&auto=format\&n=wJq4JbP813QUyZ7T\&q=85\&s=3a5ab131c6e36129468cceef00c1fea0)

## Features

Console provides the following tools to help you understand your app's behavior:

* **Real time logging**: View your app's output as it happens
* **AI assistance**: Receive suggestions to fix errors reported in the logs
* **Run history**: Show logs from prior runs to track changes

## Usage

You can access the Console tool directly in your Project Editor.

> [accordion] How to access Console
>
> 1. Select **+** in the Project Editor tab bar to open **Tools & files** in a new tab.
> 2. Enter `Console` in **Search tools**.
> 3. Select **Console**, described as **View the terminal output after running your code**.
>
> The separate **Logs** result shows deployment logs for your published app, not development output.

Each time you use the **Run** button in your Replit App, Console displays a new entry that includes the following information:

* The Command that executed your code
* Timestamp information
* Standard output and error logs

For example, a project configured to start with `npm run dev` shows that command and the log messages it produces.

> [!NOTE]
>
> Client-side logs, such as those generated from HTML, CSS, and JS code, appear only in the Developer tools in the [Preview](https://docs.replit.com/features/editor/preview.md) tool.

### AI-powered debugging

When you encounter errors or other information in the logs that you want to understand, select the
**Ask AI** button at the top of the entry. This automatically opens the **Agent** tab and
submits the log content for analysis.

### Log entry commands

Console provides the following tools to manage your logs:

* **Show Only Latest**: Toggle this control to the **on** position to display only the most recent run.
* **Collapse entry**: Select the ![downward arrow icon](https://mintcdn.com/replit/rJldsgYVucXB_6kW/images/icons/down-arrow.svg?fit=max\&auto=format\&n=rJldsgYVucXB_6kW\&q=85\&s=56bcbb702af7e7700c87fa23be223a9d) downward arrow to the left of the command name to hide the logs.
* **Clear past runs**: Select this to delete logs of prior runs. This action is irreversible.

### Network availability

You can control the development version of your app's availability online.

To stop serving requests to the development URL, select the ![network off icon](https://mintcdn.com/replit/rJldsgYVucXB_6kW/images/icons/network-off.svg?fit=max\&auto=format\&n=rJldsgYVucXB_6kW\&q=85\&s=83d1529d18164c45a63fab5e340e1320) globe with slash icon
on the right side of the network information line.

To enable it, select the ![network on icon](https://mintcdn.com/replit/rJldsgYVucXB_6kW/images/icons/network-on.svg?fit=max\&auto=format\&n=rJldsgYVucXB_6kW\&q=85\&s=169c03c9769dde9600939635a8b4a5c3) globe icon.

To view your development URL, select the `{...}.replit.dev` text in the location bar. For current navigation and privacy controls, see [Development URLs](https://docs.replit.com/core-concepts/project-editor/app-setup/development-urls.md).

> [!NOTE]
>
> Your app remains accessible in the Preview tool even when set to stop serving requests to the development URL.

### Stop a workflow command

You can stop a running workflow command from the Console Project Editor tool.

Select the square button on the right side of the line that contains your Replit App run command to terminate it.

To restart your app, use the workflow **Run** button at the top of the Project Editor.

## Next steps

To learn more about related Project Editor tools see the following resources:

* [Preview](https://docs.replit.com/features/editor/preview.md): Explore the Preview tool for testing your application and viewing console output
* [Agent](https://docs.replit.com/features/agent/overview.md): Learn about Agent for code help and error resolution
* [Shell](https://docs.replit.com/features/workspace-tools/shell.md): Learn how to use the command-line interface in the Project Editor.
