Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
8 events
when toggle format what by license comment
Jun 8, 2023 at 15:04 comment added John Mellor @Matyas pdb lets you prefix python statements/expressions with ! to avoid name clashes with pdb commands. So !list([1, 2]) will work as you expect. To enter multiline statements, you can use pdb's interact command, which is equivalent to code.interact(local={**globals(), **locals()}).
Apr 26, 2022 at 4:14 comment added Matyas One problem with this approach is that (for example) > list([1, 2]) will not work. The debugger has a list command that takes precedence. Multiline commands (like a for loop) do not work either for me in a pdb session. Maybe some config can help that, but I am not aware of one.
Mar 5, 2019 at 19:41 comment added floer32 @Kundor huh, you're right. I distinctly remember reading somewhere that the authors had decided to stop maintaining the project and pointed to another project to use instead. Maybe that happened for a bit and then it was resurrected? I could be wrong! In either case, I enjoyed ipdb before, but have enjoyed pdbpp since
Mar 5, 2019 at 2:30 comment added Nick Matteo @hangtwenty: why do you say ipdb was deprecated? I can't find any news of that.
Sep 7, 2018 at 21:39 comment added floer32 Update — ipdb was deprecated, nowadays I use pdbpp (pdb++), which has similar features, and works with import pdb; pdb.set_trace() (i.e. it patches that import, so it is a drop-in replacement)
Jun 7, 2017 at 19:41 comment added khstacking pdb is great vanilla python; if you have room for bringing in an external package, ipdb is great -- same functionality as the debugger, but with the syntax highlighting, tab completion, etc of ipython
Jan 28, 2010 at 21:33 vote accept aaronstacy
Dec 6, 2023 at 13:34
Jan 28, 2010 at 21:30 history answered prestomation CC BY-SA 2.5