VSCode is the primary tool that Microsoft provides on Linux and Mac OS to edit and debug PowerShell scripts. Yet, on MacOS, with default installation, you are likely to get the “Debug adapter process has terminated unexpectedly” when you try running your scripts.
However, to fix this issue you simply need to install OpenSSL on your Mac running VSCode as described here.
Once this is done, simply:
- Click File / Open and open the folder containing the PowerShell script,
- Click the script that you want to edit in the left-hand pane,
- Set breakpoints where you want them by clicking on the margin by the corresponding script line,
- Press F5 or click the run button in the editor:
Published December 17, 2009
Debugger , Demo , PowerGUI , PowerShell , video
New to PowerGUI admin console or script editor and debugger? Or just not sure whether you are up to speed with all the major functionality the product has?
Watch this video overview of all the key functionality the product has which Darin has just posted (full screen and HD recommended):
It is about 20 and takes you from basics to features such as graphical admin console, powerpacks, filtering, reporting, script editor, debugging, code snippets and online search. If you want to also see the table of content and be able to jump between the topic – use the version we posted here.
Published August 11, 2009
Debugger , PowerGUI , PowerShell
Starting with version 1.9 PowerGUI can maintain your editor workspace between the sessions.
So if you are in the middle of your script development and your Windows wants to reboot:
You can go ahead and close the script editor and just ask it to save the tabs before quitting:
And next time you start PowerGUI Script Editor – all your tabs, panes layout, and even breakpoints and bookmarks are magically the way they were:
And you can obviously make saving the tabs a default at any time from Tools/Options:
Happy PowerShell scripting! 🙂
Tags: Debugger, PowerGUI, PowerShell
Published January 29, 2009
Debugger , Demo , PowerGUI , PowerShell
Darin posted yet another quick PowerGUI demo – this time on basics of PowerShell script debugging: passing in script parameters, setting breakpoints, changing variable values during a debug session, and using the step-into function:
Here’s the video link and the link to the whole series.
Tags: Debugger, Demo, PowerGUI, PowerShell
Published November 20, 2007
Debugger , IDE , PowerGUI , PowerShell
Today is a milestone in our PowerGUI development. We have just released version 1.0.12 with PowerShell debugger built into the script editor.
So now not only can you edit the scripts but also debug them, set breakpoints, go step-by-step, see the values of the variables, and much more:
Building a debugger is not an easy thing so I am sure we have plenty of room for improvement in this v1 release. So if find any bugs or have great enhancement request – please don’t hesitate to file them to the discussion forums.
1.0.12 has more than just the debugger, and I will blog about other new features later this week. At the moment, I am just too excited to go into details.
The big picture is: Great admin UI and a full PowerShell IDE and did I mention they are free and available for download?
Tags: Debugger, IDE, PowerGUI, PowerShell