Where Them
Logs App
WTLA-01

Visual Studio Code

3 log locations · Windows, macOS, Linux

Microsoft Corporation

Where Visual Studio Code keeps its logs

Visual Studio Code logs to %APPDATA%\Code\logs\ on Windows.

Visual Studio Code logs to ~/Library/Application Support/Code/logs/ on macOS.

Visual Studio Code logs to ~/.config/Code/logs/ on Linux.

Paths are printed exactly as Visual Studio Code writes them. Environment variables like %LOCALAPPDATA% and $XDG_STATE_HOME are never expanded, so a path can be pasted straight into a shell. Where a path differs between installer types or shipping flavours, each one is racked as its own card below - why that happens.

Finding your way around Windows, macOS and Linux.

How to turn on debug logging for Visual Studio Code

  1. Open the Command Palette and run Developer: Set Log Level...
  2. Choose the output channel and the level you want.
  3. To set a level at launch, run code --log <extension-id>:<level>, for example code --log vscode.git:debug.

How to collect Visual Studio Code logs

  1. Open the Command Palette and run Developer: Open Logs Folder.
  2. For extension problems, run Developer: Open Extension Logs Folder.