microsoftfeedback / WinDbg-Feedback

Public issue and feedback tracking for WinDbg Preview.
Creative Commons Attribution 4.0 International
49 stars 12 forks source link

Impossible to set environment variables for debuggee #208

Open jalfd opened 3 months ago

jalfd commented 3 months ago

Perhaps I'm just missing something obvious but there doesn't seem to be a good/easy/reliable way to run a process under windbgx with a specific environment set.

It appears that environment variables I set in the terminal before launching windbx do not actually get carried forward to the debuggee when I launch that from within Windbg. Perhaps this is because windbgx is a store application with its own weird behavior?

There's also no UI under "Launch Executable" for specifying environment variables.

This feels like such a common use case that I'm wondering if I'm missing a trick. In either case, not exposing this functionality in the UI feels like an omission

lzybkr commented 3 months ago

Agreed, inheriting environment variables should work, but we should also have UI to set them when launching.