all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22984@debbugs.gnu.org
Subject: bug#22984: 25.0.92; Typo in etc/DEBUG
Date: Fri, 11 Mar 2016 14:30:29 -0400	[thread overview]
Message-ID: <878u1o50l6.fsf@gmail.com> (raw)
In-Reply-To: <838u1pj996.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Mar 2016 17:59:33 +0200")

At 17:59 +0200 on Friday 2016-03-11, Eli Zaretskii wrote:
>
>> Additionally, it might be helpful if this file mentioned the "debugger"
>> that pops up when debug-on-error is non-nil.
>
> That's not really what that file is about.
>
>> This "debugger" doesn't seem to be a debugger at all, but just a
>> help window with a backtrace in it.
>
> No, it's a debugger.  See the node "Debugger" in the ELisp manual, it
> is described there.

I see. Thank you.

However, the file is named "DEBUG" and the title is "Debugging GNU
Emacs", so it is by no means obvious that this is not the right file to
look at.

So perhaps the title should be something like "Debugging GNU Emacs with
GDB", and perhaps it should start out by saying something along the
lines of

    This file is about debugging Emacs with GDB.  For information about
    the Lisp debugger and about Edebug (the source-level debugger for
    Emacs Lisp programs), see the node "Debugging" in the Elisp manual.

>> Also, can one use `M-x gdb RET' in the same instance of Emacs that one
>> wishes to debug?
>
> No, of course not.  When you attach GDB to a program, GDB stops its,
> so Emacs will stop responding, and you will not be able to continue
> debugging.
>
> But you can run a second instance of the same binary, and debug the
> first instance from that second instance.  Perhaps this is what you
> had in mind, and this is just a misunderstanding caused by the vague
> meaning of "instance"?

Hah, no. I've only ever used GDB from the command line. It seemed like
an (insanely) neat trick if you could run GDB in the same instance of
Emacs as one was debugging. It was my fuzzy thinking along with the
following sentence that led me astray:

    This will suggest the default binary to debug; if you are going to
    start a new Emacs process, change it as needed to point to the
    correct binary.

I think the full meaning of this sentence only becomes clear after one
reads the following sentence:

    Alternatively, if you want to attach the debugger to an already
    running Emacs process...

The problems with the first sentence are "you", "new", and "it". Perhaps
it could be made slightly clearer?

Perhaps something along the lines of:

    This will suggest the default binary for GDB to start; if you want
    GDB to start a different binary, change the suggestion as needed.
    Alternatively, if you want to attach GDB to an already running Emacs
    process...

Regards,
N.






  reply	other threads:[~2016-03-11 18:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 15:18 bug#22984: 25.0.92; Typo in etc/DEBUG N. Jackson
2016-03-11 15:59 ` Eli Zaretskii
2016-03-11 18:30   ` N. Jackson [this message]
2016-03-11 18:39     ` Eli Zaretskii
2016-03-11 19:06       ` N. Jackson
2016-03-11 19:42         ` Eli Zaretskii
2016-03-11 20:12           ` N. Jackson
2016-03-11 20:27             ` Eli Zaretskii
2016-03-11 21:18               ` N. Jackson
2016-03-12  8:34                 ` 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=878u1o50l6.fsf@gmail.com \
    --to=nljlistbox2@gmail.com \
    --cc=22984@debbugs.gnu.org \
    --cc=eliz@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.