Powershell Console - Is it interactive

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 10 years and 3 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.
pringtef
Posts: 45
Last visit: Mon Sep 23, 2019 11:00 am

Powershell Console - Is it interactive

Post by pringtef »

Is the Powershell Console option meant to be interactive or just for display? If not, can this be raised as a feature request to be interactive?

This is functionality that is great in the built in ISE with Windows 8/2012, so that if you reach a breakpoint for example, you can then run some commands on line command line, adjust variables and so on, before resuming execution. It makes the debugging and testing process a lot nicer.

thanks,

Tim
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Powershell Console - Is it interactive

Post by davidc »

The console is interactive, you can send command via the input line, or if you prefer type directly in the console by unchecking the "Enable Enhanced Console Input Line" in Options->Console.

Note: That the console is a separate instance of the original powershell.exe and does not interact directly with the PowerShell Studio. When you run a script in PowerShell Studio it is ran in a new instance of PowerShell to ensure there are not dependencies on modified variable. If you want to maintain an ongoing session, you have the option to run the scripts in the console.

If you are debugging in PowerShell Studio, there is a separate panel called Debug Console, in which you can query the runspace during breakpoints.

David
David
SAPIEN Technologies, Inc.
pringtef
Posts: 45
Last visit: Mon Sep 23, 2019 11:00 am

Re: Powershell Console - Is it interactive

Post by pringtef »

Thanks David
This topic is 10 years and 3 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.