From: R. B. <ro...@pa...> - 2006-12-28 13:07:02
|
My guess is that a drive letter and backslashes are shown in the location pydb is printing and this is what is not getting recognized. That is, pydb prints something like: (c:\mydirectory\myprog.py:10): If you could copy what appears as a location, e.g. the part that I think will sort of look like what's above -- the line that has the parenthesis -- that would help out. I had been running under cygwin which doesn't show drive letters or use backslashes. A couple comments though about the regular expression used. The pattern you give will match an all sorts of non-drive things, for example: (::a:bbbb:c:\mydirectory\myprog.py:10): So try using this instead: "^(\\(?:[a-zA-Z]:\\)?\\([-a-zA-Z0-9_/\\\\.]*\\):\\([0-9]+\\)):[ \t]?" There may be another thing in the regular expression you suggests that may be cause problems. I guess that so far the drive printed also happens to be your "current" drive. If you have another drive around try putting a script on that while your current drive is not that. If that doesn't work and the above change did not break things too, then try: "^(\\(\\(?:[a-zA-Z]:\\)?[-a-zA-Z0-9_/\\\\.]*\\):\\([0-9]+\\)):[ \t]?" and see if this works. If you get back with the results, I'll look into updating that nasty regular expression. And yes, regular expressions in GNU Emacs Lisp are a pain in the ass to get right. ralph.kammerlander writes: > Hi, > I'm an absolute beginner with python (and emacs ...) and trying to learn something new. > I am using python 2.5 under WinXP (okay, I could use an other os ...) > I just wanted to use pydb with emacs, but i could only get it to work with the source buffer, when i changed > > (defconst gud-pydb-marker-regexp > "^(\\([-a-zA-Z0-9_/.]*\\):\\([0-9]+\\)):[ \t]?" > to > (defconst gud-pydb-marker-regexp > "^([a-zA-Z:]*\\([-a-zA-Z0-9_/\\\\.]*\\):\\([0-9]+\\)):[ \t]?" > > I assume that's not the right way to do it ... > Could somebody help me? > > Ralph > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> > <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> > <BODY> > <DIV>Hi,</DIV> > <DIV>I'm an absolute beginner with python (and emacs ...) and trying to learn > something new.</DIV> > <DIV>I am using python 2.5 under WinXP (okay, I could use an other os ...)</DIV> > <DIV>I just wanted to use pydb with emacs, but i could only get it to work with > the source buffer, when i changed</DIV> > <DIV> </DIV> > <DIV>(defconst gud-pydb-marker-regexp<BR> "^(<A > href="file://([-a-za-z0-9_/.]*//)://([0-9]+//">\\([-a-zA-Z0-9_/.]*\\):\\([0-9]+\\</A>)):[ > \t]?"<BR>to</DIV> > <DIV>(defconst gud-pydb-marker-regexp<BR> > "^([a-zA-Z:]*\\([-a-zA-Z0-9_/\\\\.]*\\):\\([0-9]+\\)):[ \t]?"<BR></DIV> > <DIV>I assume that's not the right way to do it ...</DIV> > <DIV>Could somebody help me?</DIV> > <DIV> </DIV> > <DIV>Ralph</DIV></BODY></HTML> > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________ > Bashdb-pydb mailing list > Bas...@li... > https://lists.sourceforge.net/lists/listinfo/bashdb-pydb |