You can set three types of breakpoints in the Windows PowerShell debugging environment:
You can set "F9" to debug the code in powershell ISE and .
    Click the line where you want to set a line breakpoint, and press F9 or, on the Debug menu, click Toggle Breakpoint.
    
Old way doing debug, put write-host/exit to get the varible value inside the log.
Line breakpoint. 
Variable breakpoint. 
Command breakpoint.
    We will see examples to use below cmdlets.
    
    set-psbreakpoint
    
get-psbreakpoint