Skip to main content

GitHub Codespaces logs

Overview of the logs used by GitHub Codespaces.

Information on GitHub Codespaces is output to various logs:

  • Codespace logs
  • Creation logs
  • Extension logs (for the VS Code desktop application)

Browser logs are available if you are using GitHub Codespaces in your browser. Click the "Web browser" tab above for details.

Codespace logs

These logs contain detailed information about the codespace, the container, the session, and the VS Code environment. They are useful for diagnosing connection issues and other unexpected behavior. For example, the codespace freezes but the "Reload Windows" option unfreezes it for a few minutes, or you are randomly disconnected from the codespace but able to reconnect immediately.

  1. Open the VS Code Command Palette (Shift+Command+P (Mac) / Ctrl+Shift+P (Windows/Linux)) and type export log. Select Codespaces: Export Logs from the list to download the logs.
  2. Define where to save the zip archive of logs then click Save (desktop) or click OK (web).

Creation logs

These logs contain information about the container, dev container, and their configuration. They are useful for debugging configuration and setup problems.

Open the VS Code Command Palette (Shift+Command+P (Mac) / Ctrl+Shift+P (Windows/Linux)) and type creation log. Select Codespaces: View Creation Log from the list to open the creation.log file.

If you want to share the log with support, you can copy the text from the creation log into a text editor and save the file locally.

Extension logs

These logs are available for VS Code desktop users only. They are useful if it seems like the GitHub Codespaces extension or VS Code editor are having issues that prevent creation or connection.

  1. In VS Code, open the Command Palette.
  2. Type logs and select Developer: Open Extension Logs Folder.
  3. Your system's file explorer is displayed showing various log files and folders. Open the folder output_logging_DATETIME.

From this view, you can access logs generated by extensions you use in VS Code, including GitHub Codespaces.

Further reading