473,473 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Debugging from within emacs!

Argh..

How do I debug my python-code from the inside of emacs, throw some
breakpoints? and fire up the session, check backtraces and so on?

/Andy

Experimenting I have come this far:

I have put a pdb.bat in my path, containing:
"c:\Program Files\Python23\python.exe" -u "c:\Program Files\Python23\Lib\pdb.py" %1 %2 %3 %4 %5 %6 %7 %8 %9

In emacs I do M-x pdb <enter> <enter>, I get the

Current directory is h:/WorkingWith/PyLabView/
h:\WorkingWith\PyLabView>"c:\Program Files\Python23\python.exe" -u "c:\Program Files\Python23\Lib\pdb.py" PyLVcomms.py
<string>(1)?() (Pdb)

Whatever I try to do now, like doing a step, I get

(Pdb) step
--Call--

and nothing happens.. restart, doing a "n"
(pdb) n

twenty;20;abc;3;abc
{'twenty': ('int', 20), 'abc': ('string', 'abc')}

--Return-- <string>(1)?()->None

(pdb)
--
"I [..] am rarely happier than when spending an entire day programming
my computer to perform automatically a task that it would otherwise
take me a good ten seconds to do by hand."
-- Douglas Adams, "Last Chance to See"
-= May he rest in peace! =-
Jul 19 '05 #1
0 1247

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

Similar topics

79
by: Tim Tyler | last post by:
PHP has some pretty funky error messages: "parse error, unexpected T_IF"; "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING"; Humans often see these - shouldn't they be more...
1
by: Wezzy | last post by:
Hi all, i've just seen the pydebug plugin for jEdit and my question is : is there something similar for emacs ? i'm looking for a debugger frontend, a very simple program, just set breakpoint,...
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...
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)...
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.