Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.)

like image 456
Bruce Avatar asked Sep 22 '17 21:09

Bruce


1 Answers

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.

like image 105
serg10 Avatar answered Sep 19 '22 01:09

serg10