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

Add support for IPython debugger to breakpoint #154

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kinuax
Copy link

@kinuax kinuax commented May 18, 2024

I think this tool is very handy and concise, beforehand I used to paste from IPython import embed; embed(colors='neutral') for debugging purposes.

Python 3.7 introduced the built-in function breakpoint() via PEP 553. I read the Debug implementation and noticed that devtools' debug.breakpoint() and built-in breakpoint() produce the same output and behavior.

In order to avoid this redundancy and to enhance the debug.breakpoint() method, I got an idea to add support for IPython debugger. This way we have syntax highlighting (closer to prettier print output), tab completion, etc., keeping the same interface as pdb.

Copy link

codecov bot commented May 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.31%. Comparing base (2aea99d) to head (b8ce2cf).

Current head b8ce2cf differs from pull request most recent head dd9542b

Please upload reports for the commit dd9542b to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
+ Coverage   96.29%   96.31%   +0.01%     
==========================================
  Files           8        8              
  Lines         729      732       +3     
  Branches      111      111              
==========================================
+ Hits          702      705       +3     
  Misses         21       21              
  Partials        6        6              
Files Coverage Δ
devtools/debug.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2aea99d...dd9542b. Read the comment docs.

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

Successfully merging this pull request may close these issues.

1 participant