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

Window not focused on breakpoint hit when Chrome and VS Code maximized #116615

Closed
zmechanic opened this issue Feb 13, 2021 · 7 comments
Closed

Window not focused on breakpoint hit when Chrome and VS Code maximized #116615

zmechanic opened this issue Feb 13, 2021 · 7 comments
Assignees
Labels
info-needed Issue requires more information from poster windows VS Code on Windows issues

Comments

@zmechanic
Copy link

Issue Type: Bug

Steps:

  1. Set breakpoint in JSX code.
  2. Breakpoint hit and code execution suspended

Expected:
Yellow highlight on line where breakpoint hit; being able to see current variable values.

Observed:
No higlight, VSCode halted (can't click inside). Need to switch to Chrome and back to VSCode. This will immediately indicate breakpoint line with yellow, and can see variables. Seems like focus issue.

VS Code version: Code 1.53.2 (622cb03, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2494)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.91GB (6.53GB free)
Process Argv --crash-reporter-id 6bc32b6e-4df0-47fc-ad3c-da7600333664
Screen Reader no
VM 0%
Extensions (3)
Extension Author (truncated) Version
vscode-eslint dba 2.1.14
dotenv mik 1.0.1
debugger-for-chrome msj 4.12.12
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspyt653:30253241
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstry244:30256636
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30251590

@weinand weinand assigned isidorn and unassigned weinand Feb 13, 2021
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Feb 13, 2021
@isidorn
Copy link
Contributor

isidorn commented Feb 15, 2021

@zmechanic

  1. can you please share some minimal project for which you can reproduce this?
  2. Can you reproduce with VS Code insiders since we pushed some commit that might fix this https://code.visualstudio.com/insiders/
  3. Can you post a screenshot

fyi @connor4312

@isidorn isidorn added info-needed Issue requires more information from poster and removed new release labels Feb 15, 2021
@zmechanic
Copy link
Author

zmechanic commented Feb 15, 2021 via email

@isidorn
Copy link
Contributor

isidorn commented Feb 15, 2021

So this sounds like focusing the window does not work if Chrome is open side by side.
Sounds like an Electron issue, also assigning to @deepak1556 since I know we already had users complaining that window.focus sometimes does not work

@isidorn isidorn changed the title Breakpoint not highlighted on hit while debugging JSX Window not focused on breakpoint hit when Chrome open side by side Feb 15, 2021
@isidorn isidorn removed debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster labels Feb 15, 2021
@zmechanic
Copy link
Author

zmechanic commented Feb 15, 2021 via email

@isidorn isidorn changed the title Window not focused on breakpoint hit when Chrome open side by side Window not focused on breakpoint hit when Chrome and VS Code maximized Feb 15, 2021
@deepak1556
Copy link
Collaborator

Can you check if the issue continues to happen when you start the app like code --disable-features=CalculateNativeWinOcclusion

@deepak1556 deepak1556 added electron-11-update info-needed Issue requires more information from poster windows VS Code on Windows issues labels Feb 15, 2021
@zmechanic
Copy link
Author

zmechanic commented Feb 15, 2021 via email

@deepak1556
Copy link
Collaborator

Thanks for checking, merging the issue to #114459. Please follow that issue for updates.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

4 participants