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

While debugging cannot continue a process that is not in focus #125327

Closed
karthiknadig opened this issue Jun 2, 2021 · 3 comments
Closed

While debugging cannot continue a process that is not in focus #125327

karthiknadig opened this issue Jun 2, 2021 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@karthiknadig
Copy link
Member

Issue Type: Bug

Python extension developer here 👋. This seems to be a UI issue with VS Code.

Clicking on continue on a process that is not in focus (does not work). Note, the continue is not on the process that is currently in focus. Hitting continue on the process that is currently in focus works fine.
image

Steps to reproduce:

  1. Create pyton file with code below:
from concurrent.futures import ProcessPoolExecutor
from math import factorial

values = [2, 3, 4, 5, 6]


def fact_square(x):
    return factorial(x) ** 2 # break here


if __name__ == "__main__":
    result = []
    with ProcessPoolExecutor(max_workers=5) as executor:
        result = executor.map(fact_square, values)
  1. Set breakpoint where it says "break here".
  2. Start debugging.
  3. When the breapoint hits check the Debug view > Call stack. Try to "continue" a process that is not currently in focus.

VS Code version: Code 1.56.2 (054a929, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2304)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.78GB (46.93GB free)
Process Argv C:\GIT\design\discovery --crash-reporter-id 8a06823c-8219-469b-a5be-5ad36c5c7a1c
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
vscode-eslint dba 2.1.20
gitlens eam 11.4.1
EditorConfig Edi 0.16.4
prettier-vscode esb 6.4.0
vscode-pull-request-github Git 0.26.0
python ms- 2021.5.842923320
vscode-pylance ms- 2021.5.4
jupyter ms- 2021.6.832593372
remote-containers ms- 0.177.2
remote-ssh ms- 0.65.4
remote-ssh-edit ms- 0.65.6
remote-wsl ms- 0.56.4
vscode-remote-extensionpack ms- 0.21.0
vscode-github-issue-notebooks ms- 0.0.99
code-spell-checker str 1.10.2
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158cf:30286554
vscgsv2:30307504
vscorehov:30309549
bridgeflight:30302069
vscod805:30301674

@karthiknadig
Copy link
Member Author

/cc @isidorn, @int19h

Related issue in debugger microsoft/debugpy#637

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jun 2, 2021
@weinand weinand added this to the June 2021 milestone Jun 2, 2021
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Jun 2, 2021
@isidorn
Copy link
Contributor

isidorn commented Jun 3, 2021

Thanks for great steps. Looks like an issue on the VS Code side. Unassigning @weinand and I can investigate next week.

@isidorn
Copy link
Contributor

isidorn commented Jun 25, 2021

@karthiknadig thanks again for filling this great issue. I have just pushed a fix, so you can try it out from Monday and let us know if it is indeed fixed for you.
Also let us know if there are more debug issues you are hitting, it is highly appreciated 👏

@connor4312 connor4312 added the verified Verification succeeded label Jul 1, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2021
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 insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@weinand @isidorn @connor4312 @karthiknadig and others