microsoft / microsoft/vscode

Code, on Linux, is bleeding internal env vars into delve sessions.

Open
#332,136 1 comment 0 reactions 1 assignee Claimed by @connor4312 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

What you are seeing is an internal Electron/VS Code architecture leak, rather than an OS bug.What is actually happeningVS Code is built on Electron, which uses the Chromium engine underneath. To keep the UI fast, VS Code offloads work to separate background utility worker processes. In your case, the process handling the built-in Markdown Language Features extension is running inside a background NodeJS worker.When the VS Code compilation team builds the production version of VS Code, they intentionally pass DEBUG=release directly to their internal JavaScript toolchains and extension builds (like the Markdown server) to disable development logs, enable minification, and maximize performance.Why Delve is inheriting itNormally, an extension's environment is sandboxed. However, because of the way VS Code launches debugger sidecars (like Delve for Go), Delve is fork-spawned as a child process of the broad VS Code Extension Host layer.Instead of Delve cleanly inheriting just your system's global environment variables, it is accidentally picking up the internal DEBUG=release flag that the VS Code core engine injected into its extension worker runtime environment.

VS Code version: Code 1.134.0 (110a328ea54b42367b803ec53ee0bf52ef26b419, 2026-08-18T18:24:44Z)
OS version: Linux x64 7.0.0-30-generic
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 7950X 16-Core Processor (32 x 4936)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x2782, DRIVER_VENDOR=Mesa, DRIVER_VERSION=25.2.8
GPU1: VENDOR= 0x1002, DEVICE=0x7590, DRIVER_VENDOR=Mesa, DRIVER_VERSION=25.2.8 *ACTIVE*
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgpu: enabled
webgpu_on_vk_via_gl_interop: disabled_off
webnn: disabled_off|
|Load (avg)|0, 0, 0|
|Memory (System)|62.37GB (52.76GB free)|
|Process Argv|--crash-reporter-id 905ff9dc-9820-4406-8a06-aba5754b5057|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|cinnamon|
|XDG_CURRENT_DESKTOP|X-Cinnamon|
|XDG_SESSION_DESKTOP|cinnamon|
|XDG_SESSION_TYPE|x11|
Extensions (21)

Name|Identifier|Author|Version
---|---|---|---
Better Comments|aaron-bond.better-comments|aaron-bond|3.0.2
Claude Code for VS Code|anthropic.claude-code|Anthropic|2.1.239
Perl|cfgweb.vscode-perl|cfgweb|1.19.0
macros|ctf0.macros|ctf0|1.1.1
Go|golang.go|golang|0.56.0
Helium Icon Theme|helgardrichard.helium-icon-theme|helgardrichard|1.0.0
Untabify|ilich8086.untabify|ilich8086|0.0.2
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
Symbols|miguelsolorio.symbols|miguelsolorio|0.0.26
Black Formatter|ms-python.black-formatter|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
VS Code Speech|ms-vscode.vscode-speech|ms-vscode|0.16.0
Ollama|ollama.ollama|Ollama|0.0.8
Codex – OpenAI’s coding agent|openai.chatgpt|openai|26.818.41705
XML|redhat.vscode-xml|redhat|0.29.3
YAML|redhat.vscode-yaml|redhat|1.24.0
Code Spell Checker|streetsidesoftware.code-spell-checker|streetsidesoftware|4.5.6
CSpell Bundled Dictionaries - Code Spell Checker|streetsidesoftware.code-spell-checker-cspell-bundled-dictionaries|streetsidesoftware|2.0.14
TooltitudePb (for Protobuf / proto files)|tooltitudeteam.tooltitude-pb|tooltitudeteam|1.28.0
Markdown All in One|yzhang.markdown-all-in-one|yzhang|3.6.3

A/B Experiments

```
vsliv368cf:30146710
vswsl492:30256859
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
cloudbuttont:31379625
42190218_ostrepl:31403339
ddidt:31399633
ec5jj548:31422691
lysithea-14-5b4adf69:31568578
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
23c7c724:31520045
ddid_t:31478206
hmra_i5g22:31518061
g35_d1382936:31569111
ie3bb177:31557831
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
a1ije391_t:31540920
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
gf14b233:31526830
ahp-both-windows:31556933
session_8:31532895
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
sandbox-ui-on-2:31543161
enable_editor_pane_layout:31569726
allow-none:31555437
6i51c363:31551401
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
vrbsty_fls:31561059
session-archive:31558132
5b8j3302:31564601
mangle-name-treatment:31570928
permission_prompt_treatment:1332566
ccr_pr_nudge_auto_review:1319472
vsc_wsm_c:1340633

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.