You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"'Hello from LOWERCASE file'"> file.ps1
"'Hello from UPPERCASE file'"> FILE.ps1
# Set breakpoint on lowercase fileSet-PSBreakpoint-Script file.ps1 -Line 1# Invoke uppercase file& ./FILE.ps1
# Enters debugger (issue)
Entering debug mode. Use h or ?for help.
Hit Line breakpoint on '/tmp/file.ps1:1'
At /tmp/FILE.ps1:1 char:1+'Hello from UPPERCASE file'+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expected behavior
Does not enter debugger as the breakpoint is set for the lowercased file only.
See #20046 (comment).
VSCode extension relies on the current behavior atm because it sets breakpoint using a lowercase drive letter on Windows.
Actual behavior
Enters debugger because breakpoint matches script using OrdinalIgnoreCase string comparison.
Error details
No response
Environment data
Name Value
---------
PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Prerequisites
Steps to reproduce
Run in linux:
Expected behavior
Does not enter debugger as the breakpoint is set for the lowercased file only.
See #20046 (comment).
VSCode extension relies on the current behavior atm because it sets breakpoint using a lowercase drive letter on Windows.
Actual behavior
Enters debugger because breakpoint matches script using
OrdinalIgnoreCasestring comparison.Error details
No response
Environment data
Visuals
No response