Archive for the 'Debugger' Category

Fixing “Debug adapter process has terminated unexpectedly” error in VSCode for PowerShell

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:

  1. Click File / Open and open the folder containing the PowerShell script,
  2. Click the script that you want to edit in the left-hand pane,
  3. Set breakpoints where you want them by clicking on the margin by the corresponding script line,
  4. Press F5 or click the run button in the editor:

Debugging PowerShell scripts on Mac OS X in VSCode

Happy scripting!


New PowerGUI Overview 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.

Get back to your scripts fast

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: , ,

Video: PowerShell Script Debugging

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: , , ,

New free PowerShell debugger

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:

PowerGUI PowerShell IDE script editor and debugger

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: , , ,

My Recent Tweets


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

December 2022

%d bloggers like this: