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:
Manage Breakpoints in Windows PowerShell ISE
How to add and remove breakpoints for debugging in the Windows PowerShell ISE?
✍: FYIcenter.com
A breakpoint is a designated spot in a script where you would like
operation to pause so that you can examine the current state of the
variables and the environment in which your script is running. Once
your script is paused by a breakpoint, you can run commands in the
Console Pane to examine the state of your script. You can output
variables or run other commands. You can even modify the value of
any variables that are visible to the context of the currently
running script. After you have examined what you want to see, you
can resume operation of the script.
You can set three types of breakpoints in the Windows PowerShell debugging environment:
Line breakpoint - The script pauses when the designated line is reached during the operation of the script
Variable breakpoint - The script pauses whenever the designated variable’s value changes.
Command breakpoint - The script pauses whenever the designated command is about to be run during the operation of the script. It can include parameters to further filter the breakpoint to only the operation you want. The command can also be a function you created.
To set a line breakpoint - A breakpoint can be set in a script only after it has been saved. Right-click the line where you want to set a line breakpoint, and then click Toggle Breakpoint. Or, click the line where you want to set a line breakpoint, and press F9 or, on the Debug menu, click Toggle Breakpoint.
Remove a line breakpoint Removing a breakpoint deletes it. If you think you might want to use it again later, consider disabling it instead. Right-click the line where you want to remove a breakpoint, and then click Toggle Breakpoint. Or, click the line where you want to remove a breakpoint, and on the Debug menu, click Toggle Breakpoint.
Â
⇒ Manage a Debugging Session in Windows PowerShell ISE
⇠Write and Run Scripts in the Windows PowerShell ISE
⇑ Introduction of Windows PowerShell ISE
⇑⇑ Windows PowerShell Tutorials
2016-10-04, 4287👍, 0💬
Popular Posts:
Can I remove startup application "exec.exe - NetZero Search Enhancements" to speedup my computer and...
What is "Portable Device Enumerator Service" in my Windows 7 service list? And how is "Portable Devi...
Can I register my computer later? I don't want to register my computer during the initial Windows 7 ...
How to view system properties on Windows Server 2016? I just want to get some basic information abou...
Can I disable Windows service "usnsvc.exe: Messenger Sharing USN Journal Reader Service" to speedup ...