vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Stopping at a breakpoint that has been removed

Open kirilllzaitsev opened this issue 1 year ago • 1 comments

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.85.2
  • OS Version: Ubuntu 22.04

Steps to Reproduce:

  1. Open a Jupyter notebook
  2. Copy the code:
import time


for i in range(10):
    print(i)
    time.sleep(1)
  1. Create a breakpoint at the print(i)
  2. Remove the breakpoint after one iteration
  3. 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

kirilllzaitsev avatar Feb 18 '24 09:02 kirilllzaitsev

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!

vscodenpa avatar Feb 18 '24 09:02 vscodenpa