Reputation: 1705
I would like to examine the contents of an environment variable while I am debugging a C++ program in visual studio. Have googled lots but have not found the procedure to do so... any advice on how I can do this? Thanks!
Upvotes: 3
Views: 1754
Reputation: 1
Adding a watch that calls the C getenv function (e.g. getenv("PATH")
) seems to work.
Upvotes: 0
Reputation: 1705
None of the suggested methods worked for me... I do not know why (though I'm sure I was just missing something simple). I wound up using Process Explorer to examine the environment for the process, gave me the info I required.
Upvotes: 1