Debug: PSScriptAnalyzer annoyances

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Jehoschua
Posts: 64
Last visit: Fri Mar 01, 2024 3:24 am

Debug: PSScriptAnalyzer annoyances

Post by Jehoschua »

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: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Debug: PSScriptAnalyzer annoyances

Post by davidc »

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 1488 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 1488 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.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.