Categories:
Administration (10)
Adware Spyware (7)
Apache (10)
Bluetooth (125)
DOS Commands (1)
Edge (28)
General (2)
Internet Explorer (217)
Media Center (12)
Media Player (11)
Mozilla Firefox (18)
PHP (15)
Programming (8)
Security (4)
Silverlight (15)
Tips (17)
Tools (218)
Tutorials (5)
Windows 10 (166)
Windows 7 (636)
Windows 8 (1091)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (52)
Collections:
Other Resources:
Debugging Variables in Windows PowerShell ISE
How to display the values of variables while debugging in Windows PowerShell ISE?
✍: FYIcenter.com
You can display the current values of variables in the script as
you step through the code.
To display the values of standard variables, you can use one of the following methods:
All panes in ISE are always in the same scope. Therefore, while you are debugging a script, the commands that you type in the Console Pane run in script scope. This allows you to use the Console Pane to find the values of variables and call functions that are defined only in the script.
However, the above methods do not work for the following automatic variables ($_, $Input, $MyInvocation, $PSBoundParameters, and $Args). If you try to display the value of any of these variables, you get the value of that variable for in an internal pipeline the debugger uses, not the value of the variable in the script.
You can work around this issue by assigning the value of the automatic variable to a new variable. Then display the value of the new variable, either by hovering over the new variable in the Script Pane, or by typing the new variable in the Console Pane.
Â
⇒ Windows PowerShell Tutorials
⇠Manage a Debugging Session in Windows PowerShell ISE
⇑ Introduction of Windows PowerShell ISE
⇑⇑ Windows PowerShell Tutorials
2023-04-17, 8714👍, 1💬
Popular Posts:
How do I improve the touch sensitivity on my PC 1. Adjust the pen and touch settings in the Control ...
How to configure PHP execution environments? If you followed our Downloading PHP Engine tutorial , y...
Every time I open Internet Explorer a bar pops up saying that it is runner with out add ons. I check...
What is NicConfigSvc.exe process - Internal Network Card Power Management Service? Process nicconfig...
What is CLI.exe - Process - ATI CLI Application (Command Line Interface)? Process CLI.exe is the ATI...