-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all properties are displayed during debug in the Variable panel #821
Comments
Verified. Looks like we are getting the properties of the base object and not the extended properties of the PSObject. |
How hard is the fix? Think we can get it in today? Planning to ship an update at some point during the day so we could fit it in. |
Don't know yet. Looking at the code. |
Testing. |
I have a fix that adds in // This exception occurs when accessing the value of a
// variable causes a script to be executed. Right now
// we aren't loading children on the pipeline thread so
// this causes an exception to be raised. In this case,
// just return an empty list of children. Do we want |
NoteProperty is probably good enough. I agree with your justification for the others! |
Oh and yeah, I don't see a need for AliasProperty until someone asks for it. |
Thanks for the quick fix, it's much appreciated. I can confirm it's working as you specified. All As it happens when I was using VS Code it was the I would hope that, at some point in the future, all properties were available. I'm trying to move away from the ISE, but I'm struggling at the moment. VS Code has lots of extra, really useful, functionality, but is missing feature parity with ISE. I'm looking forward to the day when I can just use VS Code. |
What else is the PowerShell extension and VS Code missing for ISE parity? There isn't a variables view in the ISE by default, so I'm guessing you've been using ISE Steroids there? Definitely interested to hear where we don't match up against the base ISE experience. I've filed issue #826 to track the need for ScriptProperty and CodeProperty properties. |
@daviwil When mentioning missing functionality I was not referring to the Variables panel. I was thinking of functionality such as By the way, I don't use ISE Steroids. I tried it, but found it slowed the ISE down too much. With regard to the Variables panel, I'm used to the ISE (or PowerShell prompt). If I run I'm at the tipping point. My intention is to try using VS Code as my primary IDE. I'm aware that not all functionality is currently there, but there is functionality that isn't available in ISE (variables panel, refactoring, etc. This is not a critcism, but feedback. I greatly appreciate the work you've done on the PowerShell extension. |
Thanks a lot for giving it a shot as your main IDE! I really appreciate your feedback, feel free to file issues for anything else you find that's missing or not up to par. The other features you mentioned you are definitely on the way, I'm finishing up some preliminary work now that will make it much easier to address the lack of Write-Progress and PSReadline. My hope is that the PSReadline support will be added by the end of June, but that might require some pending PSReadline changes to be merged first. At any rate, the extension will continue to improve quickly over the next few months :) |
System Details
$PSVersionTable
:PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
I have the following code:
I set a breakpoint on the
$x
line. In the Variables panel I expanded the$x
variable. For each entry the following properties are missing:PSPath
PSParentPath
PSChildName
PSDrive
PSProvider
PSIsContainer
Mode
BaseName
Target
LinkType
The following properties are displayed:
Name
Parent
Exists
Root
FullName
Extension
CreationTime
CreationTimeUtc
LastAccessTime
LastAccessTimeUtc
LastWriteTime
LastWriteTimeUtc
Attributes
Attached Logs
I tried to attach the log, but was continually told that
We don’t support that file type.
Strange as it was createdSend to > Compressed (zipped) folder
. I can expand it with 7-zip.The text was updated successfully, but these errors were encountered: