%debug broken in 0.11 series
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Committed
|
Undecided
|
Fernando Perez |
Bug Description
From Erik Tollerud, on-list:
I decided to try out the bzr version of ipython again and it looks
great except for continued problems using the %debug magic ... this
time, instead of getting nothing, I get an exception due to the debug
handler trying to make use of the __IPYTHON__ builtin which I
understand has been removed in .11 ... This seemed like an easy fix,
so I went in and replaced __IPYTHON__ with a reference to the current
shell instance (assigned in the Pdb.__init__ from ipapi.get() ).
Problem is, apparently the debugger expects the shell to be an
InteractiveShel
added a method to the Pdb class that emulates the presence of
set_completer_
perfect. But I have no idea what unintended consequences this might
have (and am confused why set_completer_frame is not present in the
first place, or in InteractiveShel
At any rate, attached is a patch that seems to work for me (made with
bzr send). In general, what's the best way to submit patches/fixes -
via this list, the launchpad bug tracker, or a personal launchpad
branch?
This is already fixed in my branch.
On Wed, Dec 16, 2009 at 10:33 PM, Fernando Perez <email address hidden> wrote: launchpadlibrar ian.net/ 36895432/ debugger. diff /bugs.launchpad .net/bugs/ 497651 lEmbed, which has a set_completer_frame method. So I frame, and now all of a sudden the debugger works l)...
>
> ** Attachment added: "Erik's patch"
> http://
>
> ** Changed in: ipython
> Status: New => In Progress
>
> ** Changed in: ipython
> Assignee: (unassigned) => Fernando Perez (fdo.perez)
>
> ** Changed in: ipython
> Milestone: None => 0.11
>
> --
> %debug broken in 0.11 series
> https:/
> You received this bug notification because you are a member of IPython
> Developers, which is subscribed to IPython.
>
> Status in IPython - Enhanced Interactive Python: In Progress
>
> Bug description:
> >From Erik Tollerud, on-list:
>
> I decided to try out the bzr version of ipython again and it looks
> great except for continued problems using the %debug magic ... this
> time, instead of getting nothing, I get an exception due to the debug
> handler trying to make use of the __IPYTHON__ builtin which I
> understand has been removed in .11 ... This seemed like an easy fix,
> so I went in and replaced __IPYTHON__ with a reference to the current
> shell instance (assigned in the Pdb.__init__ from ipapi.get() ).
> Problem is, apparently the debugger expects the shell to be an
> InteractiveShel
> added a method to the Pdb class that emulates the presence of
> set_completer_
> perfect. But I have no idea what unintended consequences this might
> have (and am confused why set_completer_frame is not present in the
> first place, or in InteractiveShel
>
> At any rate, attached is a patch that seems to work for me (made with
> bzr send). In general, what's the best way to submit patches/fixes -
> via this list, the launchpad bug tracker, or a personal launchpad
> branch?
>
>
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
<email address hidden>
<email address hidden>