Get-DbgPsVariable.ps1
param( [Parameter(ValueFromPipelineByPropertyName = $true)] $Address ) begin { } process { $objectDump = Get-DbgObject $Address $resultObject = @{} if($objectDump.Type -eq "System.Management.Automation.PSVariable") { $name = $objectDump.Name $resultObject.Name = $name $resultObject.Type = $objectDump.Fields["_value"].Type $resultObject.Value = $objectDump._value $resultObject.Address = $Address New-Object PSObject -Property $resultObject | Select Name,Type,Value,Address } } end { } |