I have PowerShell script opened in the code window. I am starting the same script from the terminal and expect it to run in the debugging mode. It means: script would stop at breakpoint.
Described behavior would be similar to PowerShell ISE. However, it runs whole script without stopping at breakpoints.
is there a way to achieve script debugging when started from the terminal?