Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger in VS Code Jupyter notebooks fails with 'Error in inserting pydevd breaks' #1000

Closed
DonJayamanne opened this issue Aug 2, 2022 · 1 comment

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Aug 2, 2022

Environment data

  • debugpy version: 1.6.2 (run import debugpy; print(debugpy.__version__) if uncertain)
  • OS and version: Linux Ubuntu
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.9
  • Using VS Code or Visual Studio: VS Code

Actual behavior

At times the debugger fails with the following message
`Error in inserting pydevd breaks

Expected behavior

XXX

Steps to reproduce:

  1. XXX

We run tests on CI for debugging Jupyter notebooks.
Please find attached notebook with all of the outputs and screenshots for each of the failing tests.
In the screenshots and the output you can see Pydevd throws errors.
TestResultNotebook-raw-nonConda-3.9--ubuntu-latest (1).zip
pydevd_breaks

@fabioz
Copy link
Collaborator

fabioz commented Aug 3, 2022

@DonJayamanne this was actually fixed a few days ago in: #996

And the custom support for IPython stepping (#998) was just merged -- this should make it possible to use IPython with justMyCode: false -- note that it requires "PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING" = "1" to be set in the environment prior to importing debugpy (I created microsoft/vscode-jupyter#11033 to track that in in the jupyter side in VSCode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants