When stepping through specific scripts, the $Error variable gets populated with the following error.
>> $Error
You cannot call a method on a null-valued expression.
At line:1 char:1
+ $^.GetType().FullName
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Each time I step or hit another breakpoint, the another one of these errors gets added to $Error. No matter where I put the breakpoints, it happens. I even set the first breakpoint at the first line of the script which can be a simple variable assignment, or write host.
When I am debugging and an error occurs, it is mingled in with these "null-value" errors that are generated. After a while it becomes frustrating.
Some of the unsuccessful things I have tried are
- Upgrade PowerShell Studio
Disable all breakpoints, save and close PowerShell Studio, then try again
Commenting out the entire script except one or two simple commands
Deleting everything in the editor and just a couple simple commands
Changing the Powershell Studio options back to their defaults (I added some assemblies)
Any ideas? I have used PowerGui for years, but the lack of support is making me move to something else. I'd love to buy PowerShell Studio and use it going forward, but things like this have me on the fence.