Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to render gud (python debugger) output?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Z  
View profile  
 More options Oct 5 2012, 4:30 am
Newsgroups: gnu.emacs.help
From: Z <zhushe...@gmail.com>
Date: Fri, 5 Oct 2012 01:30:19 -0700 (PDT)
Local: Fri, Oct 5 2012 4:30 am
Subject: How to render gud (python debugger) output?
Hi members,

I use gud pdb to debug Python program. But output of gud is mono color
and hard to identify the information in a huge chuck of
output(e.g. type "bt" and find current frame in stack). So I want to add color and link to the output.

How to render gud output? What function shall I add or change?

Thank you very much,
Z


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 5 2012, 4:40 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Fri, 05 Oct 2012 10:40:02 +0200
Local: Fri, Oct 5 2012 4:40 am
Subject: Re: How to render gud (python debugger) output?

> Date: Fri, 5 Oct 2012 01:30:19 -0700 (PDT)
> From: Z <zhushe...@gmail.com>
> Injection-Date: Fri, 05 Oct 2012 08:30:19 +0000

> I use gud pdb to debug Python program. But output of gud is mono color
> and hard to identify the information in a huge chuck of
> output(e.g. type "bt" and find current frame in stack). So I want to add color and link to the output.

> How to render gud output? What function shall I add or change?

Did you try the command below?

   M-x gdb-many-windows RET

You can also invoke it by clicking "Gud->GDB-MI->Display Other Windows"
from the menu bar.

This causes the call stack be automatically displayed in a separate
window, with clickable frames.  So you should not need to examine the
output of "bt" manually, if you don't want to.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Z  
View profile  
 More options Oct 5 2012, 8:29 pm
Newsgroups: gnu.emacs.help
From: Z <zhushe...@gmail.com>
Date: Fri, 5 Oct 2012 17:29:30 -0700 (PDT)
Local: Fri, Oct 5 2012 8:29 pm
Subject: Re: How to render gud (python debugger) output?

Eli, thank you.

I prefer command line debug without so many windows open. Besides, gdb-many-windows() seems not callable in gud-pdb mode, maybe it's only available in gud-gdb mode.

And I have gone through gud code and found supports for other debuggers except gdb are rudimentary. So I add the code to .emacs to highlight/hide python debugger outputs.

(add-hook 'pdb-mode-hook
          (lambda ()
            (progn
            (hi-lock-face-buffer "^-> +.+$\\|^.+pdb\\.py.+$\\|^.+bdb\\.py.+$" 'org-hide)
            (hi-lock-face-buffer "^> [-a-zA-Z0-9_/.:\\]*([0-9]+)" 'bold)
            )))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Z  
View profile  
 More options Oct 5 2012, 8:32 pm
Newsgroups: gnu.emacs.help
From: Z <zhushe...@gmail.com>
Date: Fri, 5 Oct 2012 17:29:30 -0700 (PDT)
Local: Fri, Oct 5 2012 8:29 pm
Subject: Re: How to render gud (python debugger) output?

Eli, thank you.

I prefer command line debug without so many windows open. Besides, gdb-many-windows() seems not callable in gud-pdb mode, maybe it's only available in gud-gdb mode.

And I have gone through gud code and found supports for other debuggers except gdb are rudimentary. So I add the code to .emacs to highlight/hide python debugger outputs.

(add-hook 'pdb-mode-hook
          (lambda ()
            (progn
            (hi-lock-face-buffer "^-> +.+$\\|^.+pdb\\.py.+$\\|^.+bdb\\.py.+$" 'org-hide)
            (hi-lock-face-buffer "^> [-a-zA-Z0-9_/.:\\]*([0-9]+)" 'bold)
            )))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »