question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug cell not working on macOS

See original GitHub issue

Issue Type: Bug

Debug cell launches the debugger but won’t stop at breakpoint or show any signs of any execution. Trying to access the variables before the first breakpoint in debug console throws an error which probably means it is not just a UI issue. The debugger works just fine in interactive python files, but not in notebooks. This issue reproduces in the Insiders version. A gif will be attached.

Extension version: 2022.1.1001775990 VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:20:22.135Z) OS version: Darwin arm64 20.6.0 Restricted Mode: No

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.22GB free)
Process Argv –crash-reporter-id 9c18ce9b-c0c7-4fa0-a5c2-eecd7b2d0261
Screen Reader no
VM 0%
A/B Experiments ![vscode-debug-cell-issue](https://user-images.githubusercontent.com/28503057/152713735-6e439523-0586-4677-9ffc-227c838e64f9.gif)
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30425749
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30433059
pythonvs932:30410667
wslgetstarted:30433507
vscop940:30404999
vsrem710cf:30416617

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Syndorikcommented, Feb 7, 2022

After some testings, it seems that the issue is linked to ipykernel version 6.4.1 I have downgraded to ipykernel 6.4.0 and it works perfectly

1reaction
jmigualcommented, Feb 7, 2022

Can confirm the same behavior on Windows.

Environment data

  • VS Code version: 1.64.0
  • Jupyter Extension version: v2022.1.1001775990
  • Python Extension version: v2022.0.1786462952
  • OS Windows and version: Windows 10 21H2 Build 19044.1503
  • Python and/or Anaconda version: Python 3.10.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): poetry / virtualenv
  • Jupyter server running: Local
Read more comments on GitHub >

github_iconTop Results From Across the Web

debug not working in Excel for Mac (won't step through)
Hi - debug step through suddenly stopped working. It runs the whole macro, gives me an error, but won't show me where. I...
Read more >
Debugging | Apple Developer Forums
Selenium clicks not working on Safari browser for Video Ads. I'm using Selenium version 3.141.59 and the Safari version is 12.0 for MacOS...
Read more >
Jupyter Notebook debugging not working on VS Code
In my interface I can see the button to 'Run by Line' next to every cell but when I click it nothing happens...
Read more >
PyCharm - Run and debug Jupyter notebook code cells
The debugger may skip a cell if you change its source code or execute it not under the debugger. Also, ...
Read more >
Working with Jupyter code cells in the Python Interactive window
As you find issues, stop the debugger, correct your code, save the file, and start the debugger again. When you're satisfied that all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found