Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » PowerShell ISE   (RSS)

Advanced Debugging in PowerShell

Here is a collection of tips and tricks to debug PowerShell Read Up There is a 7-part series of “ Debugging Monad Scripts ” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of

Update-TypeData, ISE CTP3 vs ISE RC, and Teched2009 Demos

There were quite a few name changes in the ISE Object Model from CTP3 to RC Using Update-TypeData, we can achieve some parity between the two We can add aliases to the CTP3 version to make it look like the RC Version For example, <Name>System.Management.Automation.Host.PSGHost</Name>
Posted by PowerShellTeam | 2 Comments
Attachment(s): IseRCType.ps1xml

Do PowerShell Demos in the ISE

Jeffry Snover and many other have used Start-Demo in powershell.exe http://blogs.msdn.com/powershell/archive/2007/03/03/start-demo-help-doing-demos-using-powershell.aspx Continuing the tradition, we now have ISEDemo.psm1 To use it, start ISE and run Import-Module
Posted by PowerShellTeam | 2 Comments
Filed under: ,

Attachment(s): ISEDemo.psm1

Adding your own help links to ISE

ISE has an F1 help feature, where if you press F1 when your caret is over a cmdlet name, context sensitive help opens. Shay Levy has a nice post on F1 help in the ISE here http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/01/31/using-help-in-powershell-ise.aspx
Posted by PowerShellTeam | 1 Comments
Filed under: ,

Differences between the ISE and PowerShell console

Here is a collection of differences between the PowerShell_ise.exe and PowerShell.exe, as well as workarounds and suggestion if you need them (assuming we have them :)) Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe

Console Application (Non) Support in the ISE

There are some limitations on how the ISE interacts with console applications you need to be aware of, for apps like ftp and netsh. First of all, the ISE Runs console apps that don’t require user input just fine. For example, “ping www.microsoft.com”
Posted by PowerShellTeam | 4 Comments
Filed under:

Design of Script Friendly APIs, lessons from $psISE

Cmdlets are high level, task-oriented abstractions. The implementation of cmdlets can talk to anything: Web services, COM objects, WMI objects, .NET objects – anything. Depending upon how developers design their API, they can make it easier or harder

Debugging PowerShell Script Using the ISE Editor

Hi writers and consumers of buggy scripts. This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks. The debugger support got the cmdlets and user interface. The cmdlets include Enable/Disable/Get/Set/Remove-PsBreakpoint
Posted by PowerShellTeam | 8 Comments
Attachment(s): debugger.png

Diagnosing Here-Strings With PowerShell_ISE

James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string.   One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1

PowerShell_ISE Scripting: ConvertTo-Comment

Let me combine a couple of things. 1) When I posted my PowerShell_ISE profile, I included a function Goto-Line that is now builtin to the ISE so I reposted the blog with this function commented out. I commented it out instead of deleting it because I

My Powershell_ISE Profile Part 2

I messed up. First let me remind you that what you have are CTP bits and that CTP bits are subject to change. It turns out that we are tweaking the PowerShell_ISE object model and that the profile I posted does not work with CTP3. I’m sorry for that screw

My PowerShell_ISE Profile

[UDPATE - the original post had a script which did not work with CTP3 so I've replaced it with the correct version. Apologizes for the screw up. I've updated the attached file as well. - jps] I thought I would share my PowerShell_ISE profile with you.

PowerShell ISE Can Do a Lot More Than You Think

In CTP2, we released the first version of PowerShell_ISE. It was VERY rough and primitive and we came close to deciding to wait to CTP3 to ship it. We decided to go head and ship it in CTP2 because the team got it to critical mass and we wanted to let

PowerShell_ISE and Visual Studio

Scott Fulton has a good article describing my PDC talk HERE . In it he says, " Starting with version 2, a user can conceivably write new PowerShell cmdlets in PowerShell, using the built-in IDE, completely independently of Visual Studio. " This is true
 
Page view tracker