help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlight current source line during debugging


From: Stephen Berman
Subject: Re: highlight current source line during debugging
Date: Tue, 05 Feb 2013 11:11:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]