469,323 Members | 1,560 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Debugging from within emacs!

Argh..

How do I debug my python-code from the inside of emacs, throw some
breakpoints? and fire up the session, check backtraces and so on?

/Andy

Experimenting I have come this far:

I have put a pdb.bat in my path, containing:
"c:\Program Files\Python23\python.exe" -u "c:\Program Files\Python23\Lib\pdb.py" %1 %2 %3 %4 %5 %6 %7 %8 %9

In emacs I do M-x pdb <enter> <enter>, I get the

Current directory is h:/WorkingWith/PyLabView/
h:\WorkingWith\PyLabView>"c:\Program Files\Python23\python.exe" -u "c:\Program Files\Python23\Lib\pdb.py" PyLVcomms.py
<string>(1)?() (Pdb)

Whatever I try to do now, like doing a step, I get

(Pdb) step
--Call--

and nothing happens.. restart, doing a "n"
(pdb) n

twenty;20;abc;3;abc
{'twenty': ('int', 20), 'abc': ('string', 'abc')}

--Return-- <string>(1)?()->None

(pdb)
--
"I [..] am rarely happier than when spending an entire day programming
my computer to perform automatically a task that it would otherwise
take me a good ten seconds to do by hand."
-- Douglas Adams, "Last Chance to See"
-= May he rest in peace! =-
Jul 19 '05 #1
0 1142

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

79 posts views Thread by Tim Tyler | last post: by
1 post views Thread by Wezzy | last post: by
2 posts views Thread by Gary Wessle | last post: by
1 post views Thread by Dan Stromberg - Datallegro | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.