Skip to content

Breakpoint is not hit when debugging a cell #16826

@kayoch1n

Description

@kayoch1n

Environment data

  • VS Code version: 1.102.1
  • Jupyter Extension version (available under the Extensions sidebar): 2025.6.0
  • Python Extension version (available under the Extensions sidebar): 2025.10.1
  • OS (Windows | Mac | Linux distro) and version: macOS 14.7.6 (23H626) Darwin arm64
  • Python and/or Anaconda version: 3.9.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): No virtual env is used
  • Jupyter server running: Local

Expected behaviour

Breakpoint will be hit

Actual behaviour

Breakpoint is not hit

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Create a new folder and open it via vscode. Add a ipynb file with the any python code, such as
Image
  1. Add a breakpoint. Debug the cell by right clicking the "more" menu and the "Debug Cell" button
Image
  1. The breakpoint set above is never hit. But the threads in the call stack panel are running.
Image

Logs

Visual Studio Code (1.102.1, undefined, desktop)
Jupyter Extension Version: 2025.6.0.
Python Extension Version: 2025.10.1.
Python Environment Extension Version: 1.0.0.
Pylance Extension Version: 2025.6.2.
Platform: darwin (arm64).
Home = /Users/zhijianluo
Temp Storage folder ~/Library/Application Support/Code/User/globalStorage/ms-toolsai.jupyter/version-2025.6.0
Workspace folder ~/Documents/Projects/vscode-jupyter-issue

16:31:25.747 [info] Starting debugging with mode 1
16:31:27.000 [info] Ipykernel check failed: ControllerNotSelected
16:31:27.036 [info] Starting Kernel (Python Path: /usr/bin/python3, Unknown, 3.9.6) for '~/Documents/Projects/vscode-jupyter-issue/test.ipynb' (disableUI=true)

16:31:27.057 [warn] Failed to get activated env vars for /usr/bin/python3 in 22ms
16:31:27.059 [warn] Failed to get activated env vars for /usr/bin/python3 in 16ms
16:31:27.060 [info] Process Execution: /usr/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
16:31:27.084 [info] Process Execution: /usr/bin/python3 -m pip list
16:31:27.084 [info] Process Execution: /usr/bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
16:31:27.084 [info] Process Execution: /usr/bin/python3 -m ipykernel_launcher --f=~/Library/Jupyter/runtime/kernel-v355ba5a6a71a9eb15234852802f8d6d4d985512ca.json

> cwd: ~/Documents/Projects/vscode-jupyter-issue

16:31:27.532 [info] Kernel successfully started
16:31:27.534 [info] Process Execution: /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2025.6.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
16:31:34.480 [info] Starting debugging with mode 1
16:31:40.424 [info] Ending debug session 439fc23f-e4bc-43f0-9a85-0c0f2d5d2de0
16:31:40.424 [info] Ending debug session 439fc23f-e4bc-43f0-9a85-0c0f2d5d2de0
16:37:21.487 [info] Starting debugging with mode 1

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions