Reputation: 871
I created a Jupyter Notebook cell with this code
from ipywidgets import widgets
def test_fun(button):
for i in range(10): # breakpoint in this line
print(i)
# Button to split in 12 months
test_button = widgets.Button(description="Click Me!")
test_button.on_click(test_fun)
display(test_button)
Then I set a breakpoint in "for i in range(10)". I expected the debugger to start when I clicked the test_button, but that didn't happen. You can see in the screenshot the cycle runs uninterrupted.
I tried this in JupyterLabs without a problem. I also tried the jupyter.debugJustMyCode": false
option, although it doesn't seem applicable to this case.
Also, breakpoints outside the test_fun
work as expected.
Versions:
Upvotes: 0
Views: 128