In testing the ${file} way of specifying the file to debug, I'm noticing that for a file named foo[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.
In testing the
${file}way of specifying the file to debug, I'm noticing that for a file namedfoo[1].ps1the 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-LiteralPathinstead of-Path.