November 2018
Intermediate to advanced
566 pages
17h 15m
English
This process is very simple in Visual Studio Code. All you have to do is open the file in question, hover your mouse around the left of the line number until a red dot appears, and click it to turn the red dot on:

To make the script halt at the breakpoint, call the function from within the script. Here is what the script should look like:
function New-File { [CmdletBinding()] param ( # The path to the file (or the name) [Parameter(Mandatory=$true, Position=0)] [string[]] $Path ) begin { Write-Debug "Entered the begin block." Write-Host "$(Get-Date)" } process { Write-Debug "Entered the process block." foreach ($Item in $Path) ...Read now
Unlock full access