all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robin Allen <Robin.Allen@artsalliancemedia.com>
To: 30208@debbugs.gnu.org
Subject: bug#30208: M-x pdb breaks if certain characters are in the file's path
Date: Mon, 22 Jan 2018 11:35:09 +0000	[thread overview]
Message-ID: <49E150E265ED694F872EDD5DA5137F90E3938A@ex-04.aam.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

"M-x pdb" breaks if the path to the file being debugged includes certain characters.

CONFIGURATION
GNU Emacs 25.3.1
Happens with default settings (no init file)

STEPS TO REPRODUCE
M-x pdb
Run pdb (like this): python3 -m pdb test.py

WHAT SHOULD HAPPEN
A *gud-pdb* buffer should open, display the PDB prompt, and accept debugger commands.

WHAT ACTUALLY HAPPENS
A *gud-pdb* buffer opens, with output: "Current directory is /home/me@mycompany.local/" and nothing else. Commands sent to the debugger do seem to work, but the prompt and debugger output is not displayed. After sending many commands, all the previous prompts and outputs may appear in one big lump, as if this were a buffering issue (though I don't think it is).

WORKAROUND
This is caused by GUD choking on the @ character in the file path. I worked around it by putting this in .emacs:
(setq gud-pdb-marker-regexp
  "^> \\([-a-zA-Z0-9_/.:\\@ ]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]")

This is the default value, with @ (and space, for good measure) inserted in the first group.

SUGGESTED FIX
Update the default value of gud-gdb-marker-regexp

I hope this is useful

Robin

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

             reply	other threads:[~2018-01-22 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 11:35 Robin Allen [this message]
2018-01-26 10:20 ` bug#30208: M-x pdb breaks if certain characters are in the file's path Eli Zaretskii
2018-01-26 16:35   ` Andreas Schwab
2018-01-26 19:02     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49E150E265ED694F872EDD5DA5137F90E3938A@ex-04.aam.local \
    --to=robin.allen@artsalliancemedia.com \
    --cc=30208@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.