-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
With VScode I normally debug IpyWidgets by attaching to a Jupyter Kenrnel using PID. With python 3.11 this works with an external Jupyter kernel or one managed by VScode.
Switching to using Python 3.12 it no longer connects to the PID. The only indication is a message in the console Python:....
Attaching to PID: 19800 (elapsed: 1.00s).
Attaching to PID: 19800 (elapsed: 2.00s).
Stops counting at 2.00s.
With Python 3.11 it counts up to about 8s then connects.
Environment data
- debugpy version: 1.8.0
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): 3.12 WinPython distribution
- Using VS Code:
Version: 1.84.2
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
Actual behavior
- Debugger doesn't attach (Timeout error).
Expected behavior
- Debugger attaches to PID after about 8s.
Steps to reproduce:
- Start VScode.
- Start Jupyter and obtain PID for a Python 3.12 kernel.
- Attach to PID using Python debugger.
Launch settings
{
"name": "Python: Attach using Process Id",
"type": "python",
"request": "attach",
"processId": "${command:pickProcess}",
"subProcess": false
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working