'Where are Visual Studio Code log files?
My VS Code frequently shows an error, something like "Error: cannot read property 'name' of undefined". The 'ESLint' tag in the status bar also shows up in red with an exclamation mark.
I suspect my team's custom ESLint plugin. I'd like to see the stack trace of the failure, which would probably confirm or refute my theory.
Does VS Code keep logs for this kind of error? If so, where are they?
(I'm running it on a Mac.)
Solution 1:[1]
VSCode has a couple of commands for opening its logs folders. For the VSCode logs, you can use the Developer: Open Logs Folder
command, and for VSCode extensions it's Developer: Open Extensions Logs Folder
. You can search for those commands in the Command Palette in the usual way.
These commands spawn a new Finder window on OSX, or open in Windows Explorer on Windows.
Solution 2:[2]
On Linux there are some log files under ~/.config/Code/logs
. Hope this helps.
Solution 3:[3]
On Windows, it is at %AppData%\Code\logs
Solution 4:[4]
I believe this is the directory you're looking for on MacOS: ~/Library/Application Support/Code/logs/
. I'm not sure if extensions typically store their logs and stuff elsewhere, but they'll likely be somewhere in the Code
folder.
Solution 5:[5]
For clarification if anyone else stumbles on this type '>Developer: Open Logs Folder' with the forward > symbol to start
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | serg10 |
Solution 2 | Sam |
Solution 3 | rustyx |
Solution 4 | Erik Nelson |
Solution 5 | Robbie Smith |