What I did was first ran a simple pdb on a little python program to
make sure that the debugger was working in Ubuntu 8.04 python 2.5
running from the terminal command line program. The code was:
# epdb1.py
import pdb
a = "aaa"
pdb.set_trace()
b = 'bbb'
c = "ccc"
final = a + b + c
print final
I had no troubles running the debugger.
In the terminal when I run: python epdb1.py
I get as an output
> /home/bobsysero/Documents/epdb1.py(6)()
-> b - 'bbb'
(Pdb)
When I type l to list my code I get:
(Pdb) l
1 # epdb1.py
2 import pdb
3
4 a = "aaa"
5 pdb.set_trace()
6 -> b = 'bbb'
so on
10
[EOF]
(Pdb)
--------------------------------------------------
I dabo Class Designer I am creating a menuButton application where my
Quick action Buttons can change dynamically based on the daily ToDue
requirements. For now I am setting up a simple test my using the onHit
event method assigned to Button1. I am trying to learn how to use the
pdb debugger before I start doing the real coding. The test code in
the onHit event is:
def onHit(self, evt):
dabo.trace()
Buttons = 3
self.Form.QuickButton1.Caption ="ORDER"
self.Form.QuickButton1.FontBold = True
self.Form.QuickButton1.refresh()
self.Form.QuickButton2.Caption = "SHIPPING\nTest"
self.Form.QuickButton2.FontBold = True
self.Form.QuickButton2.refresh()
self.Form.QuickButton3.Caption ="INVOICE"
self.Form.QuickButton3.FontBold = True
self.Form.QuickButton3.refresh()
self.Form.QuickButton4.Visible = False
self.Form.QuickButton5.Visible = False
self.Form.QuickButton6.Visible = False
self.Form.QuickButton7.Visible = False
What I want to do using the pdb command n to step through the code, l to
tist and p to print the Buttons variable.
The first thing I did was run Class Designer Form window where my
Buttons are located and selected the menu File -> Run to run my Form.
In my running Form I selected File -> Command Window. The Command window
dShell: self is dForm came up with:
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Back on the form I selected Help -> about to get Info on my Form:
Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.8.4; Revision 4659
UI Version: 2.8.9.1 on wxGTK (gtk2)
Next I pressed Button one to trigger the onHit event and got in the
command window:
(Pdb) Type "help", "copyright", "credits" or "license" for more
information.
>>>Design
When I press n all I get in the top window is:
(Pdb)n
(Pdb)
I am getting no other output.
I even tried typing l to list with no output except for (Pdb). I even
selected from File -> Debug Output that put a check mark in the Command
Window to see If the any output was being driven through that window
with no luck.
As I press n in the command window I can see my buttons change in my
form but no debugger output.
HELP
Bob
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]