July 28th, 2003, 04:34 PM
ddd + python
I'm trying to get DDD to play w/ my python code and I'm not having much luck.
I can get it to open the source code up, but it doesn't seem to let me set a breakpoint and then run the code. Part of the problem (I think) is that my code is spread all over the place (the code that includes the 'main' protion of my program is in a different file than that which I want to debug).
Can anyone offer any suggestions? Also, I don't need to necessarily use DDD, it's just what I have available - I would like a gui interface for the debugger though.
July 28th, 2003, 06:43 PM
Ok one question tostata, what is DDD and where did you get it because i've never heard of it .
August 1st, 2003, 07:26 PM
Thanks for responding - I just got home from vacation.
DDD is the Data Display Debugger (http://www.gnu.org/software/ddd/) - it's the debugger I use when doing C/C++ dev on unix platforms. It's supposed to work w/ the python command line debugger. I just haven't been able to get it to work acceptably...
I'm not set on using that, but I don't like using command line debuggers. If you can recommend anything else (preferably free), that would be much appreciated.
August 1st, 2003, 08:00 PM
It looks very interesting, i can definalty see why you would want to use it. I'm assuming the Python Debugger is another program? Sorry for my lack of Knowledge on this subject, new ground here.. Python provides such nice error messages I've never had to look at a debugger before. Where does the debugger come form or is it shipped with Python?
August 1st, 2003, 08:02 PM
PDB or whatever just comes in the python package - it's analagous to GDB for the GNU c/c++ package.
The error messages are good (I appreciate the instant stack trace), but I'm trying to modify an existing program for another related task, and it's painful trying to figure out exactly what's going on - I'd rather just step through.
August 1st, 2003, 08:56 PM
Ah i found it, It's a module called pdb . Am not sure how this is used by DDD, do they not have a FAQ or help email address? I jsut dont know how DDD works sorry . Have you ever hooked it up to perl or one of the others?
Last edited by netytan; August 1st, 2003 at 09:06 PM.
August 3rd, 2003, 08:50 AM
August 3rd, 2003, 09:30 AM
sweet, very interesting, DDD doest work for windows platforms does it?