Skip to content

Breakpoint Condition not working #190187

@Fernandomr88

Description

@Fernandomr88

Type: Bug

I have this code (in Dart)

        if ((a is Income && b is Income) || (a is NotaFiscal && b is NotaFiscal)) {
          bool isIncome = a is Income;
          return b.id!.compareTo(a.id!);
        }

and a breakpoint at the return line with this condition isIncome == true

but it prints at the console this:

Debugger failed to evaluate breakpoint condition "isIncome == true": [Sentinel kind: OptimizedOut, valueAsString: ] from evaluateInFrame()

VS Code version: Code 1.81.0 (Universal) (6445d93, 2023-08-02T12:40:02.782Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info
Item Value
CPUs Apple M1 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (0.06GB free)
Process Argv --crash-reporter-id f7f4ec88-0a9f-4aa6-938f-1dbd8f0228f0
Screen Reader no
VM 0%
Extensions (23)
Extension Author (truncated) Version
flutter-snippets ale 3.0.0
ng-template Ang 16.1.8
dart-code Dar 3.70.0
flutter Dar 3.70.0
xml Dot 2.5.1
gitlens eam 14.2.0
chatgpt-vscode gen 0.0.8
copilot Git 1.101.317
copilot-chat Git 0.6.0
vscode-github-actions git 0.26.1
vscode-pull-request-github Git 0.70.0
githd hui 2.3.3
rest-client hum 0.25.1
Kotlin mat 1.7.1
git-graph mhu 1.30.0
vscode-docker ms- 1.26.0
remote-containers ms- 0.304.0
remote-wsl ms- 0.81.0
awesome-flutter-snippets Nas 4.0.1
docthis oou 0.8.2
vscode-yaml red 1.14.0
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstes627cf:30244335
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
3biah626:30602489
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofb:30804716
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076

Metadata

Metadata

Assignees

Labels

*caused-by-extensionIssue identified to be caused by an extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions