Skip to content

VS Code specific environment variables shouldn't be passed on to debug targets #100166

@toptensoftware

Description

@toptensoftware

Issue Type: Bug

  1. Under Linux, start debugging any dotnet project that can log out the environment variables.
  2. Notice the debug target's environment variables include many related to VS Code's configuration.

For example, running any debug target that requires Wayland on Linux will fail because Wayland is disabled by VS Code's configuration. ie: the DISABLE_WAYLAND and changes to the XDG_* (especially XDG_RUNTIME_DIR) variables should be undone before launching the debug target.

VS Code version: Code 1.46.0 (a5d1cc2, 2020-06-10T08:59:04.923Z)
OS version: Linux x64 5.3.0-59-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (12 x 1831)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: disabled_software
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 1, 1, 1
Memory (System) 46.99GB (41.10GB free)
Process Argv . --no-sandbox
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu-wayland
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu-wayland
XDG_SESSION_TYPE wayland
Extensions (3)
Extension Author (truncated) Version
docomment k-- 0.1.11
csharp ms- 1.22.0
cpptools ms- 0.28.3

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions