An Emacs mode for editing Python code

Debugging with ipython/ipdb?

Asked by Am00 on 2013-06-17

How can I step-by-step debug my Python programs with Python-mode?

I would like to debug my code from ipython/ipdb and have python-mode show/highlight on what line I am at each step during step-by-step debugging. Is this possible?

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
2013-06-17
Last reply:
2013-06-18
Andreas Roehler (a-roehler) said : #1

Am 17.06.2013 02:01, schrieb Am00:
> New question #230863 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/230863
>
> How can I step-by-step debug my Python programs with Python-mode?
>
> I would like to debug my code from ipython/ipdb and have python-mode show/highlight on what line I am at each step during step-by-step debugging. Is this possible?
>

Proceeding as given here for example works for me:

http://shanit.blogspot.de/2010/06/debugging-python-with-ipython-and-ipdb.html

Should something fail or a feature is missed, please file a bug-report at

https://bugs.launchpad.net/python-mode

Am00 (amelio-vazquez) said : #2

Thank you Andreas. I have been debugging my programs the way they explain in that link.

It would be very nice if Emacs could display/highlight the current line in a python buffer on a step-by-step debugging session. Do you know if python-mode supports that, or if there is any way to get that functionality?

Andreas Roehler (a-roehler) said : #3

Am 17.06.2013 16:46, schrieb Am00:
> Question #230863 on python-mode.el changed:
> https://answers.launchpad.net/python-mode/+question/230863
>
> Status: Answered => Open
>
> Am00 is still having a problem:
> Thank you Andreas. I have been debugging my programs the way they
> explain in that link.
>
> It would be very nice if Emacs could display/highlight the current line
> in a python buffer on a step-by-step debugging session. Do you know if
> python-mode supports that, or if there is any way to get that
> functionality?
>

Maybe consult this

http://gremu.net/blog/2010/using-ipythons-debugger-pdb-replacement/

Please file a bug-report if you can't make it work.

Can you help with this problem?

Provide an answer of your own, or ask Am00 for more information if necessary.

To post a message you must log in.