-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoints not honored in file name with square brackets in name #123
Comments
Hah, great catch! |
@daviwil Check this out. Create a file in ISE - name it
That works. From the PowerShell prompt, only this combination seems to work (path in quotes and escaped brackets). Blech. The |
Haha, using IntelliSense to resolve the path might be a little overkill, but we should definitely quote and escape any path that gets passed in. If you want to try the IntelliSense approach just to see how the code looks, go for it! |
OK fixing it the right way should be easy. I believe the only wildcard chars we need to escape are |
Sounds good to me! |
…reakpoints from working. Once I got breakpoints to be able to set for files like foo[1].ps1 and foo][.ps1 I noticed that the script named foo][.ps1 would not execute at all!! You get an error saying something like the specified wildcard character pattern is not valid. FWIW ISE fails with this same message. So PSES has one up on ISE. :-)
…litpath Fix for issue #123, wildcard chars in script path prevent breakpoints…
In testing the
${file}
way of specifying the file to debug, I'm noticing that for a file namedfoo[1].ps1
the breakpoint never hits - even though the script clearly executes. And while VSCode shows the file as having a breakpoint, if I run Get-PSBreakpoint in the dbg repl, it doesn't show up. My guess is that were we set the breakpoint file we probably need to use-LiteralPath
instead of-Path
.The text was updated successfully, but these errors were encountered: