Odoo Help

0
0
eLBati
On 22/08/14 06:32

Debug mode

According to odoo.py --help

--debug             enable debug mode

so start odoo with

odoo.py --debug

 

PDB

You have to edit the python file you want to debug by adding a breakpoint with

import pdb

pdb.set_trace()

and start odoo normally.

Thank you for commenting. What I'm trying to figure out is how to start the server on debug mode: i already know how to use a pdb (been using it on previous versions). What I can't seem to achieve is to start odoo server on debug mode.

Elepe Servicios, Fabián De Luca
on 22/08/14 10:14
0

import pdb

whitch line in to breackpoint (debug mode start) you want, before Add this line  pdb.set_trace()

  • In terminal side 

"S"  for Next step

Execute the current line, stop at the first possible occasion (either in a function that is called or on the next line in the current function).

"N" for next line

Continue execution until the next line in the current function is reached or it returns. (The difference between next and step is that step stops inside a called function, while next executes called functions at (nearly) full speed, only stopping at the next line in the current function.)

Thank you for commenting. What I'm trying to figure out is how to start the server on debug mode: i already know how to use a pdb (been using it on previous versions). What I can't seem to achieve is to start odoo server on debug mode.

Elepe Servicios, Fabián De Luca
on 22/08/14 10:14

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 21/08/14 15:01
Seen: 7611 times
Last updated: 21/05/18 04:22