Git Product home page Git Product logo

Comments (4)

asmeurer avatar asmeurer commented on May 9, 2024

See also #83.

from pudb.

inducer avatar inducer commented on May 9, 2024

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.

minrk avatar minrk commented on May 9, 2024

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.

asmeurer avatar asmeurer commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.