Skip to content

Variable Substitution in launch.json not visible in debug configuration provider #85206

@mike-lischke

Description

@mike-lischke

Issue Type: Bug

According to this paragraph variable substitution is supposed to work also in launch.json, used to configure debug sessions. However it appears not to work, at least I don't get the resolved variables in my DebugConfigurationProvider.resolveDebugConfiguration function. The passed in options still contain the unresolved variables, making it so impossible to use the given values (e.g. the current file, given as ${file} to set up my debugger.

Here's a sshot that shows the extension host with the launch setting and the debug config resolver:

var-substitution

VS Code version: Code 1.40.1 (8795a98, 2019-11-13T16:47:44.719Z)
OS version: Darwin x64 19.0.0

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz (12 x 3500)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 32.00GB (9.08GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
dot Ste 0.0.1
numbered-bookmarks ale 6.2.1
spellright ban 3.0.48
vscode-svgviewer css 2.0.0
vscode-eslint dba 1.9.1
xml Dot 2.5.0
vscode-wasm dts 1.2.1
gitlens eam 10.2.0
tslint eg2 1.0.44
php-intellisense fel 2.3.13
vscode-mysql for 0.4.0
duk-debug Har 0.5.6
live-html-previewer hdg 0.3.0
vscode-auto-open-markdown-preview hnw 0.0.4
beautify Hoo 1.5.0
svg joc 1.0.5
vscode-phpfmt kok 1.0.30
vscode-antlr4 mik 2.2.3
prettify-json moh 0.0.3
debugger-for-chrome msj 4.12.1
vscode-yacc se2 1.1.0

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions