Skip to content

addBreakpoints not working for Instruction or Data breakpoints #238804

Open
@adrianstephens

Description

Type: Bug

  1. from an extension call vscode.debug.addBreakpoints([bp]), where bp is an Instruction Breakpoint or a Data Breakpoint.
  2. note the breakpoint is not added to the 'breakpoints' debug panel
  3. Note the breakpoint is not sent to the DAP host

OK, I'm being a little disingenuous here because the vscode module doesn't even define classes for InstructionBreakpoint or DataBreakpoint. But it seems like it should, and that addBreakpoints should support them.

The alternative is to classify this as a feature request and hope it gets enough upvotes to be added to a backlog; but this seems like it'd be a safe and trivial fix to a function that is currently only semi-functional.

VS Code version: Code 1.96.4 (Universal) (cd4ee3b, 2025-01-16T00:16:19.038Z)
OS version: Darwin arm64 24.1.0
Modes:

System Info
Item Value
CPUs Apple M4 (10 x 2400)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 16.00GB (2.03GB free)
Process Argv --crash-reporter-id 6e06ef7f-0758-449d-bad8-b85f9dd6a2fc
Screen Reader no
VM 0%
Extensions (38)
Extension Author (truncated) Version
process-matcher abd 0.0.3
android-dev-ext ade 1.4.0
rtf ale 2.8.0
amazon-q-vscode ama 1.44.0
fast-tasks bat 0.0.11
vscode-eslint dba 3.0.10
vscode-commands fab 2.0.2
copilot Git 1.259.0
copilot-chat Git 0.23.2
gitweb iso 1.0.1
modules iso 1.0.1
mugdb iso 0.1.0
better-cpp-syntax jef 1.27.1
svn-scm joh 2.17.0
git-graph mhu 1.30.0
vscode-dotnet-runtime ms- 2.2.5
debugpy ms- 2024.14.0
python ms- 2024.22.2
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
cmake-tools ms- 1.19.52
cpptools ms- 1.22.11
cpptools-extension-pack ms- 1.3.0
hexeditor ms- 1.11.1
remote-explorer ms- 0.4.3
vscode-serial-monitor ms- 0.13.1
platformio-ide pla 3.3.4
rust-analyzer rus 0.3.2273
vscode-3dviewer sle 0.2.2
memento-inputs spa 1.0.0
cmake twx 0.0.17
cursor-align yo1 2.1.1

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31217127
9064b325:31222308
copilot_t_ci:31222730

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions