473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

emacs python debugging: pydb or pdb fringe interaction


I can't get the gdb fringe interaction functionality to work with
either pdb or pydb. Any hints as to versions or incantations I should
try?
I have the emacs22 from debian unstable emacs-snapshot-gtk package
fwiw.

May 18 '07 #1
4 2699
Paul Rudin <pa********@ntlworld.comwrites:
I can't get the gdb fringe interaction functionality to work with
either pdb or pydb. Any hints as to versions or incantations I should
try?
It works for me on Debian Etch and GNU Emacs 21.4.1.
I'm using this settings:

(setq pdb-path '/usr/lib/python2.4/pdb.py
gud-pdb-command-name (symbol-name pdb-path))

(defadvice pdb (before gud-query-cmdline activate)
"Provide a better default command line when called interactively."
(interactive
(list (gud-query-cmdline pdb-path
(file-name-nondirectory buffer-file-name)))))
--
HTH,
Rob
May 18 '07 #2
Rob Wolfe <rw@smsnet.plwrites:
Paul Rudin <pa********@ntlworld.comwrites:
>I can't get the gdb fringe interaction functionality to work with
either pdb or pydb. Any hints as to versions or incantations I should
try?

It works for me on Debian Etch and GNU Emacs 21.4.1.
I'm using this settings:

(setq pdb-path '/usr/lib/python2.4/pdb.py
gud-pdb-command-name (symbol-name pdb-path))

(defadvice pdb (before gud-query-cmdline activate)
"Provide a better default command line when called interactively."
(interactive
(list (gud-query-cmdline pdb-path
(file-name-nondirectory buffer-file-name)))))
Unfortunately this doesn't make any difference for me, with either
emacs 22 or 21. I guess I'll just have to dig deeper into the code.
May 18 '07 #3
Paul Rudin <pa********@ntlworld.comwrites:
Unfortunately this doesn't make any difference for me, with either
emacs 22 or 21. I guess I'll just have to dig deeper into the code.
So what happens after M-x pdb?

May 18 '07 #4
Rob Wolfe <rw@smsnet.plwrites:
Paul Rudin <pa********@ntlworld.comwrites:
>Unfortunately this doesn't make any difference for me, with either
emacs 22 or 21. I guess I'll just have to dig deeper into the code.

So what happens after M-x pdb?
Everything works as it should, except for the interaction with the
fringe. I can't set breakpoints by clicking in the fringe, and they're
not displayed in the fringe. The only thing that is displayed in the
fringe is the little triangle indicating the current line.
May 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
2
by: Gary Wessle | last post by:
Hi python users I am using emacs and python-mode.el under dabian testing. is there a way to debug python code where I can step over each line and watch the value of all the variables and be able...
6
by: LorcanM | last post by:
Hello, I use pdb under Linux to debug my Python code, as in: python -m pdb myprogram.py By default it does a postmortem of unhandled exceptions, is there a way to get it to break on...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
5
by: Rotem | last post by:
Hi, Maybe I'm repeating a previous post (please correct me if I am). I've tried the following code in python 2.5 (r25:51908, Oct 6 2006, 15:22:41) example: from __future__ import...
5
by: levander | last post by:
I've been using pdb under emacs on an Ubuntu box to debug python programs. I just upgraded from Ubuntu Edgy to Feisty and this combo has stopped working. Python is at 2.5.1 now, and emacs is at...
1
by: Dan Stromberg - Datallegro | last post by:
Is there a debugging mode in emacs that works well with python? I tried gud, but it was giving me errors, so I thought I'd ask before I try to get it to work: Is there an emacs mode (perhaps gud)...
3
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs...
4
by: Richard Szopa | last post by:
Hi All, I am a devoted Emacs user and I write a lot in Python. However, I never managed to get my Emacs configuration right for this purpose. There were some discussions on this, but the threads...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.