question

sns1 avatar image
0 Votes"
sns1 asked RichMatheisen-8856 answered

Not able to use powershell in VS annd in ISE options are grade out

Not able to use powershell in VS annd in ISE options are grade out
I am seeing warning message in the VS as below when I try to use powershell. PFA. Please help
154299-alloptionsaregradeout.png154323-powershellnotabletouseinvs.png


windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Have you saved the script in the editor pane to a file? Until you do you can't debug it. Once you save the script you should be able to place a breakpoint by using the F9 key.

FYI, the PowerShell ISE is no longer a supported product. It'll still work, but there won't be any new versions or problem fixes.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered sns1 commented

Check that you have the latest PackageManagement module installed:

 get-installedmodule packagemanagement

It should be version 1.4.7.

Also, what's in your launch.json file for PowerShell?

Look at the status bar at the bottom of the screen. Do you see "Session exited"?

VS Code isn't a Microsoft supported product. You'll find support for it in places such as stackoverflow.com.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

154919-gradeout.png154936-capture.png
Hi Rich,

Thank you for the response.

It is up to latest version, you can disregard visual studio.
But why PowerShell debug options are grade although it is matching latest version. PFA. Please help further

0 Votes 0 ·
gradeout.png (44.5 KiB)
capture.png (12.1 KiB)