r/PowerShell • u/puppy2016 • Jan 02 '24
Question Debugging in Visual Studio 2022 Professional
Is there a way to replace the discontinued ISE by Visual Studio 2022 Professional? I can't believe Microsoft doesn't support their own products. There is only some weird 3rd party addon PowerShell Tools for Visual Studio 2022.
Note I don't want to use the Visual Studio Code, it reminds me of Turbo Pascal 5.5 IDE, sorry :-)
4
Jan 03 '24
I'm not sure what VSCode you're using but it's fast enough for me as a developer. It also has add-ons for everything, support for every programming language conceivable, format on save, git integration, makes developing on remote machines a breeze, customization, way better debugging features and not to mention that it's cross platform.
I don't see how the con of fonts not being to your liking outweigh the pros here.
-1
u/puppy2016 Jan 03 '24 edited Jan 03 '24
Just open a native application like Notepad and use the same font in both Notepad and VSCode. Assuming you have calibrated monitor and custom ClearType settings applied.
Now compare the font rendering in both at pixel level. All the Windows native applications (written in MFC, WinForms, WPF and so on), even Firefox, have correct font rendering. Just the Chrome and derived web wrappers like Electron use some non-native code so it looks ugly and incorrect.
It seems they will never fix it: https://bugs.chromium.org/p/chromium/issues/detail?id=2387
4
Jan 03 '24
I have a high DPI screen and zero problems with font rendering. No matter the app.
I had no problems before my current display either because I don't care enough about how fonts render for it to be a problem.
7
u/sanmyaku Jan 03 '24
I use Visual Studio Code with the Powershell debugging stuff. It works very well. It’s not slow and doesn’t render “wrong” to the best of my observation.
3
u/Thotaz Jan 02 '24
Not really, like you've found there's a PowerShell tools extension for VS but when I tried it many years ago it felt much less practical than ISE.
If you don't want to use VS code you have 2 options:
1: Continue sticking with ISE since it's not going anywhere.
2: Find a different third party editor that you like.
1
u/StrangeCaptain Jan 03 '24
Lol, that plug-in crashed that last time I used VS Code for PowerShell.
I had been trying to struggle though using it for a week or so becuase it seemed like the right thing to do, but after the crash I never fired VS Code back up
1
u/GoSlow2GoFast Jan 04 '24
Have you looked at Sapien’s PowerShell Studio? It’s a commercial product, but loaded with features and if you’re developing professionally with Powershell then it might be worth the cost, take a look…
-3
u/ZenoArrow Jan 03 '24
As someone that also dislikes VS Code, the support this editor has in this sub is too strong for you to get a balanced answer, people will still suggest using VS Code even if you state you don't like it.
6
Jan 03 '24
People will suggest VSCode because it's literally the only modern way of developing PowerShell code and because it's a way better developer tool overall than the ISE.
This guys arguments (ugly, slow, font rendering) as to why he doesn't like it isn't a problem for most people on here. And if it is the long list of pros when using VSC outweigh the cons obviously.
0
u/ZenoArrow Jan 03 '24
People will suggest VSCode because it's literally the only modern way of developing PowerShell code
It's not the only "modern" way of developing PowerShell code. Any editor with LSP/DAP support will work.
3
Jan 03 '24
And how many of those any editors are tested for PowerShell and has an official PowerShell extension that is continuously developed? Or the extension support and versatility of VSC?
0
u/ZenoArrow Jan 03 '24
Perhaps you're unfamiliar with LSP and DAP, but basically what I'm saying is that you can use the exact same official PowerShell support that Microsoft provides for VS Code, but use it in other editors.
Can read more about LSP and DAP here:
4
Jan 03 '24
but basically what I'm saying is that you can use the exact same official PowerShell support that Microsoft provides for VS Code
The caveat being that someone has to create an integration with that editors LSP.
I hadn't heard of DAP but it seems it's not just something that automatically works in every editor without doing some kind of implementation work either.
If I had to choose between that added complexity and VSCode I know what my pick would be...
-1
u/ZenoArrow Jan 03 '24
If I had to choose between that added complexity and VSCode I know what my pick would be...
There's no added complexity. In editors that support PowerShell through LSP and DAP, you install support for PowerShell via plugins, just like you do with VS Code. Also, after setup, it's not any more complex to use.
You like VS Code, but I never said you had to hate it, I said I don't like it, and I don't have to like it because there are other editors that offer just as much support for PowerShell as VS Code does. In short, stop pretending people don't have a choice when they do.
1
Jan 04 '24
In editors that support PowerShell through LSP and DAP
This implies that some kind of implementation work has to be done by someone before you can install that add-on.
And there aren't many editors where this has been done for PowerShell.
1
u/ZenoArrow Jan 04 '24
This implies that some kind of implementation work has to be done by someone before you can install that add-on.
It only implies that if you don't know how LSP and DAP works and you can't be bothered to find out. Do you want me to spoon feed the information to you?
8
u/ryuujinzero Jan 02 '24
I use and live by Visual Studio Code for all my Powershell ISE needs. You can change the theme to look however you want, you know...
Settings -> Workbench -> Appearance -> Color Theme