Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential breakpoint locations shown on every line in file #81986

Closed
mjbvz opened this issue Oct 5, 2019 · 8 comments
Closed

Potential breakpoint locations shown on every line in file #81986

mjbvz opened this issue Oct 5, 2019 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 5, 2019

Issue Type: Bug

Repo
Not sure of exact repo steps. Here's how I can reproduce the bug:

  1. Start an oss build of VS Code
  2. From insiders, attach to extension host and start debugging one of our built-in extensions
  3. Hit a breakpoint in the extension.
  4. Now delete some lines in the file (possible the one where the breakpoint was)
  5. Detach and reattach the debugger

Bug
Potential break point locations are show on every line of the file

Screen Shot 2019-10-04 at 4 50 57 PM

VS Code version: Code - Insiders 1.39.0-insider (c8252b6, 2019-10-04T09:23:20.797Z)
OS version: Darwin x64 18.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 2
Memory (System) 16.00GB (0.14GB free)
Process Argv -psn_0_3486547
Screen Reader no
VM 18%
@mjbvz mjbvz added the candidate Issue identified as probable candidate for fixing in the next release label Oct 5, 2019
@isidorn
Copy link
Contributor

isidorn commented Oct 7, 2019

I can not reproduce this following your exact steps.
Though I see that on line deletion there are some left-over candidate locations. Though I can not get in the "extreme" case that you got here.
imho this is a corner case which we should fix on insiders not as a candidate

@isidorn
Copy link
Contributor

isidorn commented Oct 7, 2019

Chrome simply does not show any candidates if the file gets changes. We can do something similar.
Also after discussing in standup we decided this is fine for October
@mattbierner let me know if you always ee this and if yes can you give more precise steps so we can consider this for september

@isidorn isidorn added this to the October 2019 milestone Oct 7, 2019
@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues and removed candidate Issue identified as probable candidate for fixing in the next release labels Oct 7, 2019
@Clancey
Copy link

Clancey commented Oct 15, 2019

This started happening to me after upgrading to Catalina. It happens on both 1.39 and the 1.40 releases

Commit: 88f15d17dca836346e787762685a40bb5cce75a8
Date: 2019-10-10T23:35:11.314Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 19.0.0```

@Clancey
Copy link

Clancey commented Oct 15, 2019

When I set breakpoints without debugging enabled they set properly. When I start debugging no break points work until I reset them. When I set them a second time I get the behavior listed in this bug report. In my debug output, I see:

    at Timeout.setTimeout [as _onTimeout] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.node-debug2/node_modules/vscode-chrome-debug-core/out/src/utils.js:96:24)
    at ontimeout (timers.js:425:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)
Error: Set breakpoints request timed out
    at Timeout.setTimeout [as _onTimeout] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.node-debug2/node_modules/vscode-chrome-debug-core/out/src/utils.js:96:24)
    at ontimeout (timers.js:425:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)```

@isidorn
Copy link
Contributor

isidorn commented Oct 15, 2019

@Clancey can you provide exact repo steps, with a potential repository?
@mjbvz more precise repro steps from you would also be appreciated. Thanks

@Clancey
Copy link

Clancey commented Oct 15, 2019

It's not a public repo, however I think I narrowed it down. It has to do with WebPack.

@isidorn
Copy link
Contributor

isidorn commented Oct 16, 2019

If it is webpack related than it seems that the node debugger is returning strange candidates for a line. Thus also assigning to @roblourens

@roblourens
Copy link
Member

I think this stuff falls under microsoft/vscode-chrome-debug-core#531 (the DA should be sure to only return breakpointLocations for the line that was requested) so I will close it as a dupe

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 17, 2019
@roblourens roblourens removed this from the October 2019 milestone Oct 17, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants