Description
System Details
- Operating system name and version: Windows Server 2012 64 bit
- VS Code version: 1.15.0-insider
- PowerShell extension version: 1.4.1
- Output from
$PSVersionTable
:
Name Value
PSVersion 5.1.14409.
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0,
BuildVersion 10.0.14409
CLRVersion 4.0.30319.
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Copy / paste the below commands into the PowerShell Integrated Terminal, and paste the output here
code -v
code : The term 'code' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pa
th is correct and try again.
At line:1 char:1
+ code -v
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS S:\Prod> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 4 1 0
PS S:\Prod> code --list-extensions --show-versions
code : The term 'code' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pa
th is correct and try again.
At line:1 char:1
+ code --list-extensions --show-versions
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Issue Description
The debugger is not started on a fresh start of vs code. Steps to reproduce the issue.
Step 1
Create file Testie.ps1
with content:
[CmdLetBinding()]
Param (
[Parameter(Mandatory)]
[String]$ProcessName
)
<# TESTs
$TestParams = @{
ProcessName = 'Code'
Verbose = $true
}
&'S:\Test\Brecht\Testie3.ps1' @TestParams
#>
Write-Verbose "Script started"
Get-Process | where Name -Like "$ProcessName*"
Write-Verbose "Debugging done"
Step 2
Set a breakpoint at line 16
by clicking F9
.
Step 3
Select the code in the comments and click F8
.
(The purpose of doing it this way is to have the parameter validation done)
Observe that the script is completely executed without stopping at line 16
. The current workaround is to run the whole script by clicking F5
and then doing step 3 again.