WIN
Visual Studio Code
3 log locations · Windows, macOS, Linux
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.
How to turn on debug logging for Visual Studio Code
- Open the Command Palette and run Developer: Set Log Level...
- Choose the output channel and the level you want.
- To set a level at launch, run
code --log <extension-id>:<level>, for examplecode --log vscode.git:debug.
How to collect Visual Studio Code logs
- Open the Command Palette and run Developer: Open Logs Folder.
- For extension problems, run Developer: Open Extension Logs Folder.