Using emacs gud/pdb python debugger under windows

Syver Enstad syver-en+usenet at
Tue Sep 17 14:00:25 CEST 2002

Felix <aprogrammer at> writes:

> Syver Enstad <syver-en+usenet at> writes:
> I am just trying to find out how/when I can
> use GNU emacs for debugging my python programs, because I generally
> prefer not to leave Emacs. I am downloading the latest emacs sources from
> cvs from savannah in order to check out if things work differently with
> > that version.
> u just need to fix a few things to make it recogonize the win32 path.
> here's how, open gud.el and search for the variable
> 'gud-pdb-marker-regexp',
> then modify it to something like: 
> (defvar gud-pdb-marker-regexp
>   "^>
> \\([-a-zA-Z0-9_/.:\\]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\)()\\(->[^\n]*\\)?\n")
> this works well for me.

Ha, ha it works, it works! (Dancing around the room) I want to hug you
Felix! I didn't think of that, obviously. So it was just pdb failing
to recognize the output from the windows version of python.

I am a happy man. Thank you very much Felix.

The version above had as line break in it. This version is without the
linebreak in the re (don't know if it matters.

  (defvar gud-pdb-marker-regexp "^> \\([-a-zA-Z0-9_/.:\\]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\)()\\(->[^\n]*\\)?\n")


Vennlig hilsen 

Syver Enstad

More information about the Python-list mailing list