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
2023-04-17, 10605🔥, 1💬
Popular Posts:
Where to find tutorials on using Windows 7 Security? Here is a collection of tutorials on Windows 7 ...
What is the "CmRcService.exe" process on windows 7? Is the "CmRcService.exe" process a virus? Can I ...
Removing Trojan Vundo with FixVundo.exe from Symantec 1. Downloaded FixVundo.exe from http://securit...
What is QLBCTRL.exe - Process - QLB Controller? Process QLBCTRL.exe is the QLB (Quick Launch Button)...
What is "IP Helper" in my Windows XP service list? And how is "IP Helper" service related to iphlpsv...