Debug Python Program by PDB - POPULAR COMMANDSet break point by inserting this python line among python program: import pdb; pdb.set_trace()
View current code area, in pdb console
l (enter)
Run the current statement and move to next statement
n (enter)
Jump into function, in pdb consle
s (enter)
Debug again, in pdb console
q (enter)
Explore variable, in pdb console
print var_name
Start OpenERP in debug mode:
./openerp-server.py --debug --config ./openerp-server.conf
No comments:
Post a Comment