Datasheet
  WHAT’S NEW IN POWERSHELL 2.0?  11
What Is PowerShell, and 
Why Do You Need It?
CHAPTER 1
debugging tools with PowerShell.   e new debugging features allow you set break-
points on the following:
 ▶
Lines
 ▶
Columns
 ▶
Variables
 ▶
Commands
If you are using the debugger with your scripts, you can step into, over, and out of 
the scripts, and you can even display the call stack, o en with a single keystroke. 
  ere are cmdlets to work with the debugger. You can also display the values of 
variables and run standard commands in the debugger.
  e ISE makes it easy to interact with the debugger. Figure 1.7 shows the Debug 
menu.
FIGURE 1.7  ISE’s Debug menu
You can also access the debugger in your PowerShell sessions. You can set break-
points using the 
Set-PSBreakpoint
 cmdlet, and you can list your breakpoints 
c01.indd 11c01.indd 11 4/18/2011 10:27:18 AM4/18/2011 10:27:18 AM










