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 translate input command in comint before send to debugger?
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
  2 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 6 2012, 6:23 pm
Newsgroups: gnu.emacs.help
From: Z <zhushe...@gmail.com>
Date: Sat, 6 Oct 2012 15:23:31 -0700 (PDT)
Local: Sat, Oct 6 2012 6:23 pm
Subject: How to translate input command in comint before send to debugger?
Hi all,
I use pdb to debug Python programs. But pdb is lack of command
like "u 3"(means up 3 frames). So I'd like to translate "u 3" to
"u;;u;;u" in comint before it is send to external debugger.

I have tried to add hook to comint-input-filter-functions, but it seems only receive the input and don't return translated command
to commit. Any suggestion to do that?

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.
Z  
View profile  
 More options Oct 7 2012, 3:01 am
Newsgroups: gnu.emacs.help
From: Z <zhushe...@gmail.com>
Date: Sun, 7 Oct 2012 00:01:45 -0700 (PDT)
Local: Sun, Oct 7 2012 3:01 am
Subject: Re: How to translate input command in comint before send to debugger?

I found the solution. Write a wrapper(e.g. pdb-sender) for comint-simple-send and (setq comint-input-sender 'pdb-sender) in pdb-mode-hook.

 
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 »