Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Debugging python in emacs isn't working.

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


patf at well

Nov 8, 2009, 6:36 PM

Post #1 of 2 (199 views)
Permalink
Debugging python in emacs isn't working.

Hi,

Emacs 22.3, python 2.6.4

Put the following into my .emacs:

(setq pdb-path 'c:\\python26\\lib\\pdb.py
gud-pdb-command-name (symbol-name pdb-path))
(defadvice pdb (before gud-query-cmdline activate)
"Provide a better default command line when called interactively."
(interactive
(list (gud-query-cmdline pdb-path
(file-name-nondirectory buffer-file-name)))))


So when I'm in a python buffer (I've tried both python.el and python-
mode.el) and do M-x pdb I get, say:

c:\python26\lib\pdb.py rpytest.py

hit <ret> and get an empty buffer that says "Comint: no process". And
the status line says: "Spawning child process: invalid argument".

I've run into "spawning child process: invalid argument" before but
not being an emacs uber-geek I never solved it directly.

Hope someone has an idea of what I'm doing wrong.



--
http://mail.python.org/mailman/listinfo/python-list


patf at well

Nov 9, 2009, 6:25 PM

Post #2 of 2 (163 views)
Permalink
Re: Debugging python in emacs isn't working. [In reply to]

On Nov 8, 6:36 pm, menomnon <p...@well.com> wrote:
> Hi,
>
> Emacs 22.3, python 2.6.4
>
> Put the following into my .emacs:
>
> (setq pdb-path 'c:\\python26\\lib\\pdb.py
>       gud-pdb-command-name (symbol-name pdb-path))
> (defadvice pdb (before gud-query-cmdline activate)
>   "Provide a better default command line when called interactively."
>   (interactive
>    (list (gud-query-cmdline pdb-path
>                             (file-name-nondirectory buffer-file-name)))))
>
> So when I'm in a python buffer (I've tried both python.el and python-
> mode.el) and do M-x pdb I get, say:
>
> c:\python26\lib\pdb.py rpytest.py
>
> hit <ret> and get an empty buffer that says "Comint: no process".  And
> the status line says: "Spawning child process: invalid argument".
>
> I've run into "spawning child process: invalid argument" before but
> not being an emacs uber-geek I never solved it directly.
>
> Hope someone has an idea of what I'm doing wrong.

python -i. It's the -i part that's important.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.