Is there any easy routine for listing all the variables and their values for a give scope?
If I have the following script scope variables:
For debugging, I can write the following to list their values:
But I have to continually modify it as variables come and go. Any easy way that I can look through an object and get the same results? That way I'd never have to change that part of the debugging script and miss any.
Yes, check out the Get-Variable cmdlet
You must be logged in to reply to this topic.