When importing `debugpy`, `PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING=1` should be set

Open
#1,004 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
devtools

Research direction

Start by locating the ipykernel entry point that imports debugpy and review how os.environ is handled before that import. Use the pydevd flag described in the issue, and consider the change complete when importing debugpy sets the requested environment value beforehand and the relevant behavior is covered by the existing test suite.

Written by the indexing model from the issue text.

Description

A new flag is available in pydevd which allows a user to step into library code without getting inside of IPython internals while doing so.

To make use of this, PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING must be set to 1 in the os.environ prior to importing debugpy.

See: https://github.com/microsoft/debugpy/issues/869 for more information.

Dominant language
Python
Stars
734
Forks
411
Avg merge
1d 2h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipython/ipykernel

All issues in ipython/ipykernel

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.