From: Stephen Berman <stephen.berman@gmx.net>
To: John Yates <john@yates-sheets.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: highlight current source line during debugging
Date: Tue, 05 Feb 2013 11:11:31 +0100 [thread overview]
Message-ID: <87k3qndq98.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <CAJnXXojgQGLetTYWVj+ba89gJkX=yehZrZDLzSGgCrS3YpP5Bw@mail.gmail.com> (John Yates's message of "Mon, 4 Feb 2013 17:21:18 -0500")
On Mon, 4 Feb 2013 17:21:18 -0500 John Yates <john@yates-sheets.org> wrote:
> When debugging I get a small triangular arrow in the left fringe.
> Especially when stepping through disassembled machine instructions it
> would be a big help to have the entire current line high lighted in
> some fashion. Can anyone suggest a solution?
A useful package for this is hl-line. How you use it might depend on
what kind of program you are debugging and what debugger you are using.
As an example, here's how you could get it for Emacs Lisp code using Edebug:
(defadvice edebug-overlay-arrow (around highlight-line activate)
"Highlight line currently being edebugged."
(require 'hl-line)
(hl-line-mode)
ad-do-it)
(defun my-edebug-quit ()
"Stop edebugging and remove highlighting."
(interactive)
(hl-line-mode -1)
(top-level))
(define-key edebug-mode-map [remap top-level] 'my-edebug-quit)
HTH
Steve Berman
next prev parent reply other threads:[~2013-02-05 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 22:21 highlight current source line during debugging John Yates
2013-02-05 10:11 ` Stephen Berman [this message]
2013-02-05 14:56 ` John Yates
2013-02-05 22:36 ` Stephen Berman
[not found] ` <mailman.19067.1360076660.855.help-gnu-emacs@gnu.org>
2013-02-05 15:16 ` Sebastien Vauban
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=87k3qndq98.fsf@rosalinde.fritz.box \
--to=stephen.berman@gmx.net \
--cc=help-gnu-emacs@gnu.org \
--cc=john@yates-sheets.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.