Inspect environment variables of a process from Visual Studio

I’ve got a C++ program built by Visual Studio 2019.

It fails if launched from the Visual Studio IDE, but runs successfully if launched from a .cmd script.

Knowing it’s specifics, I suspect that there is something wrong with the environment variables of the process launched by the IDE.

I have resolved similar issue before with adding necessary variables in the project properties -> Debugging. But now something else has changed.

Security policies of our company don’t allow me to use Process Hacker and ProcessExplorer. These programs are terminated by the corporate soft, installed on my PC.

Also, I’d like to avoid adding code that would retrieve these variables and print them.

So, are there any tools in the Visual Studio that can show environment variables for me?

Visual Studio gives very advanced debugging capabilities, probably I’m missing something.

Source: Windows Questions C++