Skip to main content
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.
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

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.
  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.
Client-side logs, such as those generated from HTML, CSS, and JS code, appear only in the Developer tools in the Preview 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 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 globe with slash icon on the right side of the network information line. To enable it, select the network on icon 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.
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: Explore the Preview tool for testing your application and viewing console output
  • Agent: Learn about Agent for code help and error resolution
  • Shell: Learn how to use the command-line interface in the Project Editor.