Viewing Debugee Environment Variables

Koby asks – “How suitable is VS automation for doing something like printing the values of all environment variables in the debugee process”?

In fact, I just learnt how to do that.

type ‘$env=0’, either at a watch window or an immediate window.

Doesn’t get much easier than that.  And unlike the commenter, it works magic for me in VS2005 too.

This entry was posted in Debugging, VC++, Visual Studio. Bookmark the permalink.

2 Responses to Viewing Debugee Environment Variables

  1. Koby Kahane's avatar Koby Kahane says:

    Heh. I had to pick the one example there happens to be a built-in debugger variable for :-)

    • Ofek Shilon's avatar Ofek Shilon says:

      Yeah, that was satisfying. :-)
      Can you give other VS-incompetence examples? Who knows, we might learn something new still..

Leave a reply to Koby Kahane Cancel reply