Comments (4)
See also #83.
from pudb.
I'd ask the IPython guys. (Let's try one: hey, @minrk) This depends on what they want in a debugger. If hooking into %pdb
is expected, then that's ok, whereas if we're supposed to provide our own %pudb
builtin, I suppose that's also fine. We'd just have to figure out what they want in their interface.
from pudb.
You can do it how you want. The official IPython way to extend IPython is with an extension - any importable module that defines load_ipython_extension(ip)
can be loaded with %load_ext module.etc
. If it were me, I would define load_ipython_extension(ip)
at the top-level in pudb.__init__.py
, so users can do %load_ext pudb
. I might define a %pudb
magic rather than overriding %pdb
, but at the same time, I doubt there are any active users of an a specific debugger who don't actually want to use it all the time, so overriding is probably a reasonable thing to do.
from pudb.
What is the recommended way for something that goes in an IPython profile file?
I'll have to check and see if it is just as easy to make %pudb
work instead of %pdb
. I'm also not sure if I can make anything happen if they are both called (obviously you can't use both debuggers at the same time, but I'm not even sure if I could make %pudb
followed by %pdb
raise an error, unless I also redefine %pdb
).
It's also worth noting that there already is a %pudb magic, which currently acts like %run -d
. But I suppose it could serve a dual purpose.
from pudb.
Related Issues (20)
- On exception pudb now jumps into the exception instead of showing it HOT 4
- Customizable breakpoint file location HOT 4
- tty terminal - UnicodeDecodeError: 'utf-8' codec can't decode byte (pudb/debugger.py in _runscript) HOT 3
- Nord Theme HOT 1
- pudb, when run on a Python 3.x invoked with -bb, tracebacks HOT 1
- "Falling back to custom shell" message printed in internal shell console HOT 2
- default urwid bright-is-bold false HOT 1
- Adding a Watch expression using AutoKey (documentation suggestion) HOT 1
- remote debugging - Cannot disable application log message from garbling up the PuDB UI screen HOT 3
- Pudb UI Exception Encountered: Object 'A' appears to be a sequence, but does not behave like one: iteration over a 0-d tensor HOT 1
- Disable "view output" in remote debug HOT 1
- βI/O operation on closed fileβ when try with "Debugging from a separate terminal" HOT 10
- Error reported when exiting iPython and returning to UI on Mac OS X HOT 3
- Please make this marvel run well on a-Shell app for iPad HOT 1
- "Debugger instance already exists" when used in pytest HOT 5
- Greyscale Theme HOT 4
- New Release HOT 1
- Unable to use `--pdb --pdbcls=pudb.debugger:Debugger` with latest versions of urwid HOT 2
- telnetlib (used for remote debugger) is deprecated in Python 3.12 HOT 4
- Run to line in the same frame HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pudb.