Friday, 20 July 2012

Debugging your OpenERP module


                                                                                                                            Pinakin Nayi
                                                                                                                            OpenERP, Gandhinagar.
                                                                                                                            nayi.pinakin@gmail.com                

Debugging your OpenERP modules is quite straightforward, as long as you know basic Python programming. Just insert the following line in your
module:
import pdb;pdb.set_trace()
Then restart your openerp-server with the –debugoption
# openerp-server –debug
Then monitor your server console. You will see your server stop and show you a command line prompt where you will be able to debug your program.
You will find further information in the Python documentation website.

...Enjoy...

No comments:

Post a Comment