Open mrboring opened 4 years ago
The hit count relies on script that is not strict mode compliant, which is likely why you are hitting this issue. Because of this I will mark this as an enhancement, although we may investigate alternatives to this script. Thanks!
System Details
System Details Output
Issue Description
Breakpoints based on
Hit Count
don't work whenSet-StrictMode
is set.Expected Behaviour
I expected the Breakpoint to be hit.
Actual Behaviour
Breakpoint was not hit.
Here are my steps to reproduce the issue:
PowerShell-7.0.0-rc.2-win-x64.msi
Install-Module pester -Scope CurrentUser
VSCodeUserSetup-x64-1.42.1.msi
settings.json
:PowerShell-Preview-2020.2.0.vsix
Open with Code
HitCountNotWorking.psm1
Edit Breakpoint
: Hit Count = 1Test-HitCountNotWorking.Tests.ps1
Debug tests
HitCountNotWorking.psm1
# Set-StrictMode -Version Latest
Test-HitCountNotWorking.Tests.ps1
Debug tests
Attached Logs
PowerShell Editor Services Logs.txt PowerShell Extension Logs.txt