microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 294 forks source link

Jupyter debug problem with vscode #16093

Closed pomergranate closed 3 weeks ago

pomergranate commented 1 month ago

Environment data

Expected behaviour

Stop , when confronted with the breakpoint.

Actual behaviour

The program can not trigger a breakpoint, or to be exact can not run at all.

Steps to reproduce:

  1. Create a test.ipynb file in the vscode
  2. Write some codes in the cell as follows
    print('1')
    print('2')
    print('3')
    print('4')
    print('5')
    print('6')
  3. Set a breakpoint
  4. Start ' Debug Cell ' and see it freezes.

bug

Logs

None

DonJayamanne commented 1 month ago

Please could you enable logging as follows:

pomergranate commented 1 month ago

@DonJayamanne Thank you for your responses. Here are the logs. jupyter.log

pomergranate commented 1 month ago

@DonJayamanne I have searched for help on the internet for some time, and found one with a similar problem aroused by the 'typing' installation. However, the problem still remains even though I uninstalled it.

DonJayamanne commented 1 month ago

@pomergranate Thank you for getting back, Unfortunately the logs didn't share any insight into this issue.

  1. Please can you ensure you update your version Of Jupyter, Python and VS Code and test this again.
  2. Also, please can you create a new conda environment and see if you still run into this issue.
  3. Finally, can you confirm you are able to
    • Run a cell without debugging
    • Debug regular python file in VS Code using the Python extension.
vs-code-engineering[bot] commented 3 weeks ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!