Adding initial scratch files

This commit is contained in:
KevinMarquette
2017-02-02 18:24:36 -08:00
parent 50c5d097c5
commit a346ed28a0
5 changed files with 411 additions and 0 deletions

30
tests.ps1 Normal file
View File

@@ -0,0 +1,30 @@
$script:test2 = 20
Set-PSBreakpoint -Script .\example.ps1 -Line (1..9) -OutVariable breakpoint -Action {global:Set-BPInfo $_}
.\example.ps1
global:Get-BPInfo | fl *
global:Set-BPInfo
$script:test2
$breakpoint | Get-Member
Remove-PSBreakpoint $breakpoint
function global:Set-BPInfo {
param($value)
$global:BPinfo += 1
$global:BPvalue = $value
}
function global:Get-BPInfo {
$global:BPvalue
}
# per file
# per line
# hit count
# execution
# the command before