India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Reply to comment

Contact Form


Jabir's picture

Debugging in OpenERP

This article covers the debugging technics available in OpenERP.

For debugging we need to run OpenERP server with parameter --debug.

After starting server with debugging mode and when any uncaught exception occures, then the server will move to debugginh mode.

From here we can do debugging and find what exactly is the issue. We can also set break point by using  pdb.set_trace() on certain part of code.

 

From debugger, we can check the issue or find the values of variable on run time. I am listing some usefull options available for debugging,

1: Print codes

To list the lines in which the debugger reach we can use l. This will display 5 lines above and below the line where debugger reach. l is the first letter in list.

Here we can also give line number to print the code from that line. Then pressing enter will display the succeeding lines.

To see the values in variables, we can make use of print statement. This is a very usefull feature to find whether the variables are having the value we intended.

If you wish to move the function this function called, then we can ,make use of u and d options. 'u' will move to the up and 'd' will move to down function.

Hope this will help you to find and fix bugs easily.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo], [[foo]]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.