Skip to content

The Visual debugger return undefined despite a value is set #165608

@brice-prunier-dev

Description

@brice-prunier-dev

Type: Bug

My issue is on typescript with angular an jest.

I discover the issue with the following use case :

  • i run unit tests that are OK
  • When i run the same test in debug mode i face the following context
    • my test states that a property is set
    • the "Mouse over visual debugger" shows the property as undefined.

My property is a little special as it is a getter on an Array subclass instance that tries to read a symbol property.
To make it more simple let say i read the following -> myRootIntance.arrayProperty.getterProperty

  • arrayProperty is an instance of an Array subclass
  • this "arrayProperty" has a symbol property that i read via "getterProperty"

On my test i see that the symbol property is set on "arrayProperty" but the visual debugger return undefined on my "getterProperty".

As it is a VsCode issue i can't make a stackblitz project but i have a little angular startup project that show the issue as few print screen..

I you need this angular startup project tell me the process to send it to you.
Regards

VS Code version: Code 1.73.0 (8fa188b, 2022-11-01T15:34:06.111Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Sandboxed: No

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (22.53GB free)
Process Argv --crash-reporter-id 43c2b866-85b6-447b-b84a-a6c3b64a2918
Screen Reader no
VM 0%
Extensions (43)
Extension Author (truncated) Version
tsco alj 1.0.24
ng-template Ang 14.2.0
vscode-svgviewer css 2.0.0
vscode-markdownlint Dav 0.48.1
vscode-simpler-icons dav 1.6.5
vscode-eslint dba 2.2.6
githistory don 0.6.19
xml Dot 2.5.1
vscode-html-css ecm 1.13.1
vscode-npm-script eg2 0.3.29
prettier-vscode esb 9.9.0
vscode-jest-runner fir 0.4.59
rest-client hum 0.25.1
code-beautifier mic 2.3.3
azure-pipelines ms- 1.208.0
vscode-apimanagement ms- 1.0.5
vscode-azureappservice ms- 0.24.5
vscode-azurefunctions ms- 1.8.3
vscode-azureresourcegroups ms- 0.5.6
vscode-azurestaticwebapps ms- 0.11.3
vscode-bicep ms- 0.12.1
vscode-cosmosdb ms- 0.19.2
vscode-docker ms- 1.22.2
csharp ms- 1.25.0
vscode-dotnet-runtime ms- 1.6.0
isort ms- 2022.4.0
python ms- 2022.18.1
vscode-pylance ms- 2022.11.10
jupyter ms- 2022.9.1202862440
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.262.3
remote-wsl ms- 0.72.0
azure-account ms- 0.11.2
azurecli ms- 0.5.0
live-server ms- 0.4.3
powershell ms- 2022.10.0
vscode-typescript-tslint-plugin ms- 1.3.4
material-product-icons PKi 1.4.1
vscode-css-peek pra 4.2.0
vscode-icons vsc 12.0.1

(6 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1:30587005
fc301958:30595537
282f8724:30602487
iaj6b796:30602301
dbltrim-noruby:30603953

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions