Skip to content

Troubleshooting.md has outdated info on log location #4774

Closed
@o-l-a-v

Description

@o-l-a-v

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Troubleshooting.md#logs says following is the log location:

Logs are located at ~/.vscode[-insiders]/extensions/ms-vscode.powershell[-preview]-/logs. For example: ~/.vscode/extensions/ms-vscode.powershell-2019.5.1/logs

I found no logs directory at this location (%USERPROFILE%\.vscode\extensions\ms-vscode.powershell-2023.6.0 in my scenario).

I then ran the PowerShell: Open PowerShell Extension Logs Folder command, and found that logs are located at:

  • %APPDATA%\Code\User\globalStorage\ms-vscode.powershell\logs\<new_directory_for_each_session\

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.3.7
PSEdition                      Core
GitCommitId                    7.3.7
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.83.0
e7e037083ff4455cf320e344325dacb480062c3c
x64

Extension Version

ms-vscode.powershell@2023.6.0

Steps to Reproduce

Look for vscode-powershell logs.

Visuals

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions