unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* highlight breakpoints with pdb?
@ 2014-11-18 22:29 Xin Jin
  2014-11-19  7:01 ` Andreas Röhler
       [not found] ` <mailman.13998.1416380496.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Xin Jin @ 2014-11-18 22:29 UTC (permalink / raw)
  To: help-gnu-emacs

I use pdb with gud to debug python scripts. I am just wondering if there is way to highlight the lines with breakpoints? For example, in some screenshots of gud-gdb, some people seem to have red circles to the left of lines with breakpoints. How to achieve that with pdb? And is there a way to list all breakpoints (like the breakpoints buffer of gud-gdb)?

I actually tried realgud once, and it did have this feature. However, realgud is lacking documentation, and I find it extremely confusing to use. I have very limited knowledge of elisp, so I cannot figure out what is going on without a more detailed guide.

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: highlight breakpoints with pdb?
  2014-11-18 22:29 highlight breakpoints with pdb? Xin Jin
@ 2014-11-19  7:01 ` Andreas Röhler
       [not found] ` <mailman.13998.1416380496.1147.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2014-11-19  7:01 UTC (permalink / raw)
  To: help-gnu-emacs

On 18.11.2014 23:29, Xin Jin wrote:
> I use pdb with gud to debug python scripts. I am just wondering if there is way to highlight the lines with breakpoints? For example, in some screenshots of gud-gdb, some people seem to have red circles to the left of lines with breakpoints. How to achieve that with pdb? And is there a way to list all breakpoints (like the breakpoints buffer of gud-gdb)?
>
> I actually tried realgud once, and it did have this feature. However, realgud is lacking documentation, and I find it extremely confusing to use. I have very limited knowledge of elisp, so I cannot figure out what is going on without a more detailed guide.
>
> Thanks.
>

This should be possible. Exists a related feature request already at python-mode.el's side

https://bugs.launchpad.net/python-mode/+bug/1248657




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: highlight breakpoints with pdb?
       [not found] ` <mailman.13998.1416380496.1147.help-gnu-emacs@gnu.org>
@ 2014-11-19  9:17   ` Xin Jin
  0 siblings, 0 replies; 3+ messages in thread
From: Xin Jin @ 2014-11-19  9:17 UTC (permalink / raw)
  To: help-gnu-emacs

On Tuesday, November 18, 2014 11:01:38 PM UTC-8, Andreas Röhler wrote:
> On 18.11.2014 23:29, Xin Jin wrote:
> > I use pdb with gud to debug python scripts. I am just wondering if there is way to highlight the lines with breakpoints? For example, in some screenshots of gud-gdb, some people seem to have red circles to the left of lines with breakpoints. How to achieve that with pdb? And is there a way to list all breakpoints (like the breakpoints buffer of gud-gdb)?
> >
> > I actually tried realgud once, and it did have this feature. However, realgud is lacking documentation, and I find it extremely confusing to use. I have very limited knowledge of elisp, so I cannot figure out what is going on without a more detailed guide.
> >
> > Thanks.
> >
> 
> This should be possible. Exists a related feature request already at python-mode.el's side
> 
> https://bugs.launchpad.net/python-mode/+bug/1248657

Actually putting a breakpoint in emacs is very easy (just type, say, "b 10" to put a breakpoint at line 10). And I've figured out how to list all breakpoints (just type "b").

What I wanted  is the feature that would put a red icon to left of the lines with breakpoints, like this:
http://csm.mech.utah.edu/content/wp-content/uploads/2011/03/Emacs-with-GDB-Breakpoint.jpg


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-19  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 22:29 highlight breakpoints with pdb? Xin Jin
2014-11-19  7:01 ` Andreas Röhler
     [not found] ` <mailman.13998.1416380496.1147.help-gnu-emacs@gnu.org>
2014-11-19  9:17   ` Xin Jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).