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

Debugger can't restart when paused in a separate file #11026

Closed
amunger opened this issue Aug 2, 2022 · 2 comments
Closed

Debugger can't restart when paused in a separate file #11026

amunger opened this issue Aug 2, 2022 · 2 comments
Assignees
Labels
notebook-debugging triage-needed Issue needs to be triaged

Comments

@amunger
Copy link
Contributor

amunger commented Aug 2, 2022

It happened like this:

I was debugging a notebook cell, which called a module.
I Set a breakpoint on the module I imported (.py file).
Somewhere during the debug session I clicked "restart debugging".

Then I got:
"Couldn't find a debug adapter descriptor for debug type 'Python Kernel Debug Adapter' (extension might have failed to activate)"

And I'm no longer able to debug the notebook until I restart vscode:

t

Originally posted by @phgmacedo in #10596 (comment)

@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Aug 2, 2022
@DonJayamanne
Copy link
Contributor

I think the problem here is we're re-starting the kernel without first shutting down the existing debugger.
Looking at the error message, this is from VS Code, leading me to believe debugger crashes unexpectedly (due to restart of the kernel), hence the error message from VS Code.
I.e. if we're already debugging, then we should shutdown the debugger, then restart the kernel.

@roblourens roblourens added this to the August 2022 milestone Aug 17, 2022
@roblourens
Copy link
Member

roblourens commented Aug 24, 2022

We need to implement restart separately for notebook debugging #7670

@roblourens roblourens removed this from the August 2022 milestone Aug 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
notebook-debugging triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants