Debug: PSScriptAnalyzer annoyances

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Jehoschua
Posts: 42
Joined: Fri Jan 29, 2016 6:23 am

Debug: PSScriptAnalyzer annoyances

Post by Jehoschua » Sat Sep 08, 2018 3:12 am

Product, version and build:
PowerShell Studio 2018 v5.5.154

Hello

PSScriptAnalyzer as some annoyances and we hope that you know workarounds for them :-):

1) It's great that we can disable "Automatically analyze scripts on every run", but how can we manually start analyze scripts? We have expected to have a "analyze scripts" in the Run Panel, so that it can be started if needed.

2) If we disable "Automatically analyze scripts on every run" and start the debugger, how can we set that the Output panel is active by default an no longer the Tools Output panel?

Unfortunately, defining a user Layout as a Debugging Layout does not save the default panels :-(

Thanks a lot for your help!
kind regards,
Thomas

User avatar
davidc
Posts: 5838
Joined: Thu Aug 18, 2011 4:56 am

Re: Debug: PSScriptAnalyzer annoyances

Post by davidc » Mon Sep 10, 2018 7:40 am

1. You can uncheck this feature in Options->Editor->Analysis->Automatically analysis scripts on run:
Options - Analyze Script On Run.png
Options - Analyze Script On Run.png (37.97 KiB) Viewed 830 times
2. The Tools panel displays an output from external tools (such as PSScriptAnalyzer). All the output panels focus when there is output. You can change this in options as well:
Options - Show Output panels.png
Options - Show Output panels.png (29.65 KiB) Viewed 830 times
3. I'm not clear as to what you mean here. When you define your own layout and Autolayout is enabled, make sure you configure it in Options->Panels.
David
SAPIEN Technologies, Inc.