When I customize the Toolbar there is an entry for "Python Debugger" if I select it and press "update" nothing changes in the Toolbar, but on the aterm from which i started drpython I find the following:
Traceback (most recent call last):
File "/opt/local/cvs/drpython/drToolBarDialog.py", line 219, in OnbtnUpdate
AttributeError: 'DrFrame' object has no attribute 'ID_PYTHON_DEBUGGER'
I have grepped through the sources and found almost nothing about the ID_PYTHON_DEBUGGER, except in ToolbarDialog.py.
I searched through the todo but found nothing about enabling the debugger - so I think it should be working.
drpython :3.0.8 (fresh today from cvs)
wxPython: 22.214.171.124 (with GTK1.2.10)
System: debian (woody) - the above are selfcompiled
greetings from crailsheim, germany
I guess, this is a relict of a former drpython verion.
In Drpython 2.4.5, the Functionn
RunWithDebugger(self, event) was still in the source code
I think, Dan want to switch this also to plugins, and it
isn't done completly yet.
greetings from Austria,
That makes it clear.
As I am new to python I sometimes need a debugger like the one that's present in Boa Constructor in oder to understand what's going on. doing "print var" every second line isn't the way I want to go.
How do others debug there code? Or is there no need for debugging when one has mastered the basics of python?
there are some very interesting plugin's for drpython.
also for debugging (I didn't use the "Debugger Support" plugin yet).
you see all plugins, if you choose "view all project files".
For the debugger:
I think, there is often a need for debugger.
But, most times, i think, it is enough to put some print statements into the source code.
Have you tried "hap debugger" (it
is also here on sourceforge)?
It looks very nice and works for me.
It is a full debugger and you can edit
the source files similar to DrPython or "Pype".
(They all use the wx.stc.StyledTextCtrl).
Thanks Francesco for your help! I didn't look further down the list of files. Therefore I simply didn't see the plugins. I will try the Debugger plugin.
I looked at hap debugger, but its not cross-platform but windows only, and I'm working under linux.
too bad, I overlooked it, that hap debugger runs only on win32 systems.
With the debugger plugin, pdb is supported.
If you want a "graphical" debugger, you could choose
the boa constructors built in debugger.
The disadvantage is, that is not ported to wxPython 2.5 yet.
You have to install wxPython 2.4 to run boa constructor.
Yes, I already discovered that boa doesn't support 2.5. Too bad. But the debugger Plugin seams to do a good job for me. I also tried the debugger of idle. I'm not shure, which one to use.
Perhaps I'll try them both and someday I will just use one and leave the other.
In regards to the toolbar issue, I will fix that for the next version (oops).
At the moment, DrPython only supports barebones debugging with bnreakpoints, and the builtin python debugger. I do envision a full scale debugger plugin for the future however.