Skip to content

ipdb does not work with Python 3.15 beta 1 #15217

@frenzymadness

Description

@frenzymadness

AFAIU, Python now by default uses the new PyREPL for pdb, see: python/cpython@234c12c

And that seems to be the case why ipdb or %debug does not work in 3.15 beta 1:

Python 3.15.0b1 (main, May 11 2026, 00:00:00) [GCC 16.1.1 20260501 (Red Hat 16.1.1-1)]
Type 'copyright', 'credits' or 'license' for more information
IPython 9.14.0.dev -- An enhanced Interactive Python. Type '?' for help.
Tip: Use `object?` to see the help on `object`, `object??` to view its source

In [1]: 2/0
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
Cell In[1], line 1
----> 1 2/0

ZeroDivisionError: division by zero

In [2]: %debug
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[2], line 1
----> 1 get_ipython().run_line_magic('debug', '')

File /usr/lib64/python3.15/pdb.py:934, in Pdb.interaction(self, frame, tb_or_exc)
    928 # We should print the stack entry if and only if the user input
    929 # is expected, and we should print it right before the user input.
    930 # We achieve this by appending _pdbcmd_print_frame_status to the
    931 # command queue. If cmdqueue is not exhausted, the user input is
    932 # not expected and we will not print the stack entry.
    933 self.cmdqueue.append('_pdbcmd_print_frame_status')
--> 934 self._cmdloop()
    935 # If _pdbcmd_print_frame_status is not used, pop it out
    936 if self.cmdqueue and self.cmdqueue[-1] == '_pdbcmd_print_frame_status':

File /usr/lib64/python3.15/pdb.py:799, in Pdb._cmdloop(self)
    797 self.allow_kbdint = True
    798 with self._maybe_use_pyrepl_as_stdin():
--> 799     self.cmdloop()
    800 self.allow_kbdint = False
    801 break

ValueError: Sorry ipdb does not support use_rawinput=False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions