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.

Advertisements
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

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s