Skip to content

Breakpoints not resolving when debugging Web Extension #232544

@richard-fine

Description

@richard-fine

Type: Bug

  1. Create a new Web Extension using yo code (using webpack + npm)
  2. Open the extension in VS Code
  3. Open src/web/extension.ts and set a breakpoint in the activate function
  4. Go to the 'Run & Debug' tab and launch the 'Run Web Extension' configuration
  5. In the Extension Host, open the command palette and run the 'Hello World' command to activate the extension.
  6. Observe that the 'Congratulations, your extension is active' message is logged to the debug console and the 'Hello World' message is shown as a popup, indicating that the extension was activated

Expected behaviour: The breakpoint should have been resolved / hit when the extension was activated.

Actual behaviour: The extension was activated and ran without ever hitting the breakpoint.

VS Code version: Code 1.95.0 (912bb68, 2024-10-28T20:16:24.561Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs AMD Ryzen Threadripper PRO 3995WX 64-Cores (64 x 2695)
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) 127.84GB (74.22GB free)
Process Argv --disable-extensions --crash-reporter-id 9f32c0d5-db48-49e8-81cf-9346e360040d
Screen Reader no
VM 0%
Extensions disabled
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
iacca1:31156133
notype1:31157159
5fd0e150:31155592

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions