Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 506

PowerShell Studio • dot sourcing and debugging

$
0
0
Going on one of my previous posts:
viewtopic.php?p=85822#p85822

I have decided to dotsource my functions to share them between my PS Studio apps and other automation scripts.

What I have noticed is that everything works if I run the app normally but when I go into debug mode there appears to be a scoping issue.
On my main form, I assign stuff to $global:PSDefaultParameterValues. This appears to be lost when in a dotsourced function in debug mode.
Also, it appears you cannot set breakpoints in the dotsourced functions.
Don't know if there are ways of dealing with this?
Thanks
David

Statistics: Posted by Lembasts — Tue Aug 27, 2024 6:27 pm



Viewing all articles
Browse latest Browse all 506

Trending Articles