Relative Content

Tag Archive for powershellvisual-studio-code

Powershell opens VS Code instead of running exe files

I have an file named read_test.exe that I compiled in msys2 (64 bit) using g++. I can run this file in the msys2 terminal, but then I run it in powershell (via .read_test.exe command) it opens the source file in vs code. How can I configure it to just run the exe normally?
(I have powershell version 5.1.19041.4894 and vscode version 1.93.1)

Powershell opens VS Code instead of running exe files

I have an file named read_test.exe that I compiled in msys2 (64 bit) using g++. I can run this file in the msys2 terminal, but then I run it in powershell (via .read_test.exe command) it opens the source file in vs code. How can I configure it to just run the exe normally?
(I have powershell version 5.1.19041.4894 and vscode version 1.93.1)

Using Developer PowerShell for VS 2022 when debugging scripts in Visual Studio Code

I would like to run / debug PowerShell scripts in Visual Studio Code through “Developer PowerShell for VS 2022 x64”.
(There is no x64 version of “Developer PowerShell for VS 2022” available by default, I created this with the following thread.)

I have created the below required configuration in the settings.json file in Visual Studio Code:

Understanding $MyInvocation.MyCommand members

The Path, Definition, and Source members of $MyInvocation.MyCommand are all identical. Is this always the case? Under what conditions would the be different? What is the purpose of each?