Skip to content

Debugging PowerShell with argument prompt causes error #1340

Closed
@robrtitus

Description

@robrtitus

Issue Description

I am experiencing a problem with script debugging. Using the launch configuration of "PowerShell launch current file w/ args prompt". After inputting parameters and arguments I receive an error message.

Steps to reproduce:
With the PowerShell extension already installed...

  1. Open a ps1 file in VSCode
  2. Ensure the default PowerShell launch configurations exist, primarily "launch current file w/ args prompt"
  3. Have the ps1 file active
  4. Press F5
  5. A prompt will appear for the script arguments (actual arguments, not an empty string)
  6. Enter the arguments in the prompt
  7. Press enter
  8. Error will appear saying no arguments were specified
    error

This issue does not occur when all extensions are disabled, but you're prompted to install the PowerShell extension. VSCode won't run the script without it.

Attached Logs

1527619157-f3d579d7-202b-45ea-9701-df03df50d3701527619151806.zip

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 6.1.7601
VSCode 1.24.0-insider
PowerShell Extension Version 1.7.0

PowerShell Information

Name Value
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.14409.1005
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-account ms-vscode 0.4.0
better-align wwm 1.1.6
gc-excelviewer GrapeCity 2.0.21
mssql ms-mssql 1.3.1
PowerShell ms-vscode 1.7.0
team ms-vsts 1.136.0
vscode-markdownlint DavidAnson 0.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions