Description
Type: Bug
Description:
On Windows, VSCode's launch.json configuration file treats environment variables Path and PATH as case-sensitive. However, Windows itself does not distinguish between Path and PATH, and only recognizes Path for DLL loading. If PATH is incorrectly used in launch.json, the program may fail to load DLL files during debugging.
Steps to Reproduce:
Create a simple program that requires a DLL file to be loaded.
In launch.json, incorrectly configure the environment variable as PATH instead of Path (e.g., "name": "PATH", "value": "C:\path\to\dlls").
When debugging, the program will fail to load the DLL, showing an error.
Changing PATH to Path in launch.json resolves the issue and allows the DLL to be loaded.
Actual Behavior:
Using PATH does not affect DLL loading in Windows, causing DLLs to not be found during debugging.
Expected Behavior:
VSCode should handle environment variables uniformly and not differentiate between Path and PATH, ensuring that DLLs can be loaded successfully during debugging.
Suggested Solution:
Fix the issue in VSCode where environment variables are treated case-sensitively in launch.json. Ensure that both Path and PATH are treated identically to avoid DLL loading issues.
VS Code version: Code 1.97.2 (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 3 3200G with Radeon Vega Graphics (4 x 3593) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 15.95GB (7.05GB free) |
Process Argv | --crash-reporter-id b3bb9a5d-7db1-4dd9-95fc-227712ac9688 |
Screen Reader | no |
VM | 0% |
Extensions (18)
Extension | Author (truncated) | Version |
---|---|---|
cpp-helper | ami | 0.3.4 |
format-astyle | DIZ | 1.1.6 |
copilot | Git | 1.272.0 |
copilot-chat | Git | 0.24.1 |
helium-icon-theme | hel | 1.0.0 |
vscode-lua-format | Koi | 1.3.8 |
cortex-debug | mar | 1.12.1 |
debug-tracker-vscode | mcu | 0.0.15 |
memory-view | mcu | 0.0.25 |
peripheral-viewer | mcu | 1.4.6 |
rtos-views | mcu | 0.0.7 |
vscode-language-pack-zh-hans | MS- | 1.97.2025021209 |
cpptools | ms- | 1.23.6 |
cpptools-extension-pack | ms- | 1.3.0 |
hexeditor | ms- | 1.11.1 |
material-icon-theme | PKi | 5.19.0 |
lua | sum | 3.13.6 |
str-transform | xzz | 0.0.2 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31242946
customenabled:31241370
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686