vscode
vscode copied to clipboard
Stopping at a breakpoint that has been removed
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.2
- OS Version: Ubuntu 22.04
Steps to Reproduce:
- Open a Jupyter notebook
- Copy the code:
import time
for i in range(10):
print(i)
time.sleep(1)
- Create a breakpoint at the
print(i) - Remove the breakpoint after one iteration
- Observe the debugger still stopping at
print(i)
Another aspect of debugging in Jupyter is that disconnecting from the debugger resumes the code that had been debugged instead of stopping cell execution. This is somehow unexpected but maybe not a wrong thing
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.86.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!