Search found 7 matches

by Richmmc
Fri Apr 16, 2021 3:20 am
Forum: PowerShell Studio
Topic: Unable to retrieve line number of exe from module
Replies: 4
Views: 6477

Re: Unable to retrieve line number of exe from module

Hi Alex, Thanks for the info. You say, "Because there is no FILE, mechanisms like Get-PSCallStack don't work". I think what threw me, is that Get-PSCallStack does return a line number if called directly in the packaged script, rather then the module. From testing this line number appears t...
by Richmmc
Wed Apr 14, 2021 2:14 am
Forum: PowerShell Studio
Topic: Unable to retrieve line number of exe from module
Replies: 4
Views: 6477

Re: Unable to retrieve line number of exe from module

Hi Alexander, It already works, but only when not compiling with a SAPIEN Host, something we need to do. Compiling with a SAPIEN Host appears to cause issues with Get-PSCallStack, at least in the way I am using it. Module - Scaled down for illustration only function Add-LogEntry { [CmdletBinding(Sup...
by Richmmc
Tue Apr 13, 2021 10:33 am
Forum: PowerShell Studio
Topic: Unable to retrieve line number of exe from module
Replies: 4
Views: 6477

Unable to retrieve line number of exe from module

Product, version and build: PowerShell Studio 2021 v5.8.188 Operating system: 2019/2016/2012r2 PowerShell version(s): 5.1 Hi All, I have a module which includes a logging function making use of Get-PSCallStack to determine the calling script, function and line number. The function has been working f...
by Richmmc
Tue Apr 13, 2021 7:28 am
Forum: Customer Service
Topic: Unable to post in powershell forum
Replies: 3
Views: 19603

Re: Unable to post in powershell forum

Thanks Alexander, will send the email as advised.

Rich
by Richmmc
Tue Apr 13, 2021 3:16 am
Forum: Customer Service
Topic: Unable to post in powershell forum
Replies: 3
Views: 19603

Unable to post in powershell forum

Hi All,

I am unable to post in the powershell studio forum. I constantly recieve:

Sorry. You need to have made a minimum of 5 posts before you can include external links in your posts.

My post does not contain any links, external or otherwise.

Please Advise.
by Richmmc
Wed Feb 06, 2019 1:23 am
Forum: PowerShell Studio
Topic: Error when analyzing script
Replies: 2
Views: 2416

Re: Error when analyzing script

Hi David, Module version is 1.17.1 which module manager informs me is up-to-date. Current Execution Policy is unrestricted. For certainty, I have run the unblock-file cmdlet against the contents of the directory to no effect. Get-ChildItem "C:\program files\windows\powershell\modules\psscriptan...
by Richmmc
Tue Feb 05, 2019 5:51 am
Forum: PowerShell Studio
Topic: Error when analyzing script
Replies: 2
Views: 2416

Error when analyzing script

Product, version and build: PowerShell Studio 2019 Version 5.6.157 32 or 64 bit version of product: 64 Bit Operating system: Windows 10 32 or 64 bit OS: 64 Bit Hi All, I have recently starting receiving the following messaing when analyzing or running/debugging a script. I have also noticed a sharp ...