Quantcast
Channel: Windows PowerShell - SAPIEN Blog
Viewing all articles
Browse latest Browse all 308

PowerShell Studio 2016: What’s New? (Part 2)

$
0
0

PowerShell Studio 2016 is released! We’ve written a series of blog posts to introduce you to the newest features. In Part 1, we reviewed new UI features, including our new dark themes.

In Part 2, we will look at the new debugging features of PowerShell Studio 2016.

 

The first debugging feature we are looking at is the new interface for dynamic breakpoints.

image

 

Variable Breakpoints

You can trigger a break when a variable is read or modified, by setting a Variable Breakpoint:

SNAGHTML1149a41

Variable: Enter the name of the variable. Dollar sign is not necessary.

File: Bind the breakpoint to a particular file. Leave blank to apply to the current session instead.

Action: Specifies commands that run at each breakpoint instead of breaking.

Mode: Determines the mode of access that triggers variable breakpoints (Read, ReadWrite, Write).

 

Function Breakpoints

You can also trigger a breakpoint when a particular command is called, by setting a Function Breakpoint:

SNAGHTML11a21e7

Function: Enter the name of the command.

File: Bind the breakpoint to a particular file. Leave blank to apply to the current session instead.

Action: Specifies commands that run at each breakpoint instead of breaking.

 

Edit Breakpoints Dialog

The Edit Breakpoint dialog allows you to view all the breakpoints and tracepoints in one location.

SNAGHTML11bb993

Enable / Disable / Remove Breakpoints

You can enable or disable the specific breakpoint by unchecking the check box:

image

Add Breakpoints

Using the buttons at the top, you can add new variable and function breakpoints.

image

Remove Breakpoints

To remove the highlighted breakpoints, press the X button.

Edit Breakpoints

You can also edit existing variable or function breakpoints directly:

image

Filter Breakpoints

When dealing with a large number of breakpoints, you can filter specific types of breakpoints using the filter drop-down menu:

image

When you are done editing the breakpoints, to commit the changes, click OK. To undo the changes, click Cancel.

 

Variable Panel Updates

We revamped the Variable Panel to make it easier to find the variables you are looking for.

image

Filtering

You can now choose to selectively display variables, such as: user variables, PowerShell variables, or all variables.

image

Search

To filter variables by name, type the variable into the Search box.

image

We hope these new features will improve your overall debugging experience.

 

Stay tuned for Part 3 of “PowerShell Studio 2016: What’s New?” blog series.

 

 
[Google+]   [Facebook]   [LinkedIn]   [StumbleUpon]   [Digg]   [Reddit]   [Google Bookmark]  


Viewing all articles
Browse latest Browse all 308

Trending Articles