Skip to content

Problems with Notebook debugger (using Jupyter Protocol) #10106

@DonJayamanne

Description

@DonJayamanne

Note: These issues have been fixed for IW debugger, we need to fix them for Notebook

  • Problem 1:

    • Cell 1
      < empty line>
      < empty line>	  
      < empty line>
      < empty line>
      print(1)
      print(2)

    When debugging the above code, the debugger will stop at line print(1), however when you hit step over in RBL or continue in the cell debugger it will break there once again.

  • Problem 2:

    • Cell 1
      < empty line>
      < empty line>	  
      < empty line>
      def foo():
          print('inside foo')
      • Cell 2
      foo()
      When debugging the above code, the debugger will stop at line foo(), however when you step into the code, it will stop way above the def foo, in a white space (basically on line 2 of the file, in the white space).
  • Problem 3:
    The above issues were uncovered while running some of the IW debugger tests.
    I think we need a few more tests for the notebook debugger to cover the same scenarios covered in IW debugger.

These issues have been fixed in the new IW when using debugger protocol.
Basically injecting breakpiont() along with a few other changes.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugnotebook-debuggingpapercut 🩸Something affecting the productivity of the teamverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions