سؤال

Is there an elegant way to copy the Environment Variables to clipboard of a Process from Process Explorer? I was trying to compare two C++ compiled processes, and want to see how the environment variables differ. It seems I cannot copy the Text and subsequently paste it to compare visually.

Note I would rather want to stick with PE rather than juggling with multiple tools, but if using another tool is the only option please feel free to suggest.

Also tagging it as C++, expecting a solution from a C++ developer's/debuggers point of view including using Visual C++

هل كانت مفيدة؟

المحلول 3

windbg !peb command displays it.

نصائح أخرى

For anyone still interested, version 16.02 of process explorer now has the ability to copy the properties of a process the same way as process hacker does. I don't know when this ability was added.

Sysinternals Process Explorer can't do this at the moment. Very annoying and surely a bug, especially if a variable's value is too long to be displayed.

The open source tool Process Hacker 2 (http://processhacker.sourceforge.net) does not have this problem. Usage is similar to Process Explorer:

  1. Launch Process Hacker
  2. Double click the process of interest
  3. Click the "Environment" tab
  4. Select All (Ctrl+A), then Copy (Ctrl+C)

Just check the _environ variable in the debugger.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top