PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

Watch evaluation sometimes ignores intermediate members

Open JustinGrote opened this issue 3 years ago • 2 comments

 $Role = [pscustomobject]@{
   DisplayName                 = 'thing'
   accessPackageResourceScopes = [pscustomobject]@{ 
     DisplayName = 'nestedthing'
   }
 }
 
 $Role
 Wait-Debugger

image

The latter watch expression should return null

JustinGrote avatar Feb 14 '22 23:02 JustinGrote

Is this only in Preview?

andyleejordan avatar Feb 16 '22 20:02 andyleejordan

@andschwa noticed that "add to watch" is bugged and only adds the last property if you choose a dependent item (which results in it not watching what you want). Probably related. image

JustinGrote avatar May 22 '22 03:05 JustinGrote