How do I see the properties on a FileInfo (or other .Net) object in the VsCode debugger variable section?

Viewed 17

I am debugging a Powershell script in VsCode. I set a variable as so:

$h = Get-ChildItem models.py

$h is a FileInfo object. The properties on a FileInfo object are:

Directory, DirectoryName, Exists, IsReadOnly, Length and Name. FileInfo reference

But if I look at the variable "$h" in the Variables section of the debugger, I see the following as its properties: PSPath, PSParentPath, PSChildName, PSDrive, PSProvider PSIsContainer and Mode.

How do I see the current values of the properties as defined in the reference for FileInfo (Directory, DirectoryName, etc) for $h?

0 Answers
Related