Debugging from within emacs!

A

Andrew Markebo

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! =-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top