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 says:

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

    • 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 Ofek Shilon Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s