Friday, August 29, 2014


Running All Of IPython in a Python Debugger

IPython: A tremendously awesome thing that Microsoft supports as a result of some kind of bizarre error or oversight.  I reluctantly pin an award on Microsoft whilest fixing them with intense stink eye and mumbling about war crimes.  "Ok folks, let's give these baby killers a round of applause, they've... uhhhh... wow, this is strange.  They.  Have.  Earned.  It... [2 seconds pass] Alright, that's enough clapping.  Anyone still clapping will be assisted toward more peaceful and citizenly conduct by the Ferguson Police Dept.  Thank you." *drops microphone, ear splitting feedback ensues amidst crackling gunfire and screams*  But, I digress...

IPython: How do I attach a god damned debugger to this thing?  I typically launch it by pressing up in my console three hundred times until I arrive at "ipython", then I press enter.  But this thing accepts a Python script name as a parameter?  And "file `which ipython`" reveals that it's an sh script and not a Python script, so this is never going to work?

Yes, and maybe, depending on how evil the ipython package maintainer for your platform happens to be.  If your package maintainer is a good guy, your IPython launcher script is implemented in Python and looks like this:

# This script was automatically generated by
if __name__ == '__main__':
    from IPython import start_ipython

If it doesn't, paste the above into a something like ~/  Then, you can launch IPython in debugger, for example, like so:

python ~/slickedit/resource/tools/pydbgp-1.1.0-1/bin/ -d -k slickedit ~/

Alright, that's it.  Anyone still here thirty seconds ago is trespassing in their own homes and will be gassed, truncheoned, tazered, and shot by the Ferguson Police Dept in "botched" late-night no-knock wrong-address warrantless drug raids that certainly do not represent retaliation of any kind.

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


July 2009   August 2009   September 2009   October 2009   November 2009   December 2009   January 2010   September 2010   December 2010   January 2011   February 2011   April 2011   June 2011   August 2011   February 2012   June 2012   July 2012   August 2012   October 2012   November 2012   January 2014   April 2014   June 2014   August 2014   September 2014   October 2014   January 2015   March 2015   April 2015   June 2015   November 2015   December 2015   January 2016   June 2016   August 2016   January 2017   March 2017   April 2018  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]