Victor Vogelpoel

Excellence is in the details

Leave a comment

The PowerShell advantage: debugging anytime

Today I was reminded of a great PowerShell feature: I can even debug script on a production server. Take that, compiled C# program!

The system administrator installed scripts I devised to update SharePoint online User Profile properties in bulk, but something failed in our tests. Well, just open PowerShell ISE, load the culprit script, set a break-point, start it and see what’s happening.

Oh, we forgot to set the IE proxy properly, so the script had no connection to internet. Easily found and fixed and the scripts started to work their magic.
Got to love PowerShell!