Community mailing list archives

community@mail.odoo.com

Re: New Pycharm debug problem

by
Kranksoft, Brecht Verhaeghe
- 12/02/2014 17:39:51
Hello,

Didn't have time to look at it, for now on my testing machine it isn't a big deal.


Met vriendelijke groeten,

Brecht Verhaeghe

brechtverhaeghe@kranksoft.be
tel 0497/46 07 27

2014-12-02 9:08 GMT+01:00 cysnake4713 <cysnake4713@gmail.com>:

Thanks! solve the problem, do you know why is this happened, how can we fix it permanently?

在 2014年11月29日 21:23, brecht verhaeghe 写道:
<blockquote cite="mid:CAGCrEtjhtOm1HssHgJsgtvSJY5c0z=6xA9wprcU8BS3wuj8fWQ@mail.gmail.com" type="cite">
Hello,

I had the same problem, normally gevent debugging should be enabled but it didn't work for me.

in odoo (subdir openerp) in the __init__.py file commenting out following lines should work:

import sys
evented = False
#if sys.modules.get("gevent") is not None:
#    evented = True

Met vriendelijke groeten,

Brecht Verhaeghe

brechtverhaeghe@kranksoft.be
tel 0497/46 07 27

2014-11-29 6:57 GMT+01:00 cysnake4713 <cysnake4713@gmail.com>:
Hi:
     I find a very tricky problem, When I'm using the newest pycharm 4 
to debug odoo v8, I got log like this:

/home/cysnake4713/pythonenv/tianv-erp/local/bin/python 
/home/cysnake4713/software/pycharm/helpers/pydev/pydevd.py --multiproc 
--client 127.0.0.1 --port 51864 --file 
/home/cysnake4713/pythonenv/tianv-erp/odoo/openerp-server -c 
/home/cysnake4713/pythonenv/tianv-erp/odoo/.openerp_serverrc
pydev debugger: process 4181 is connecting

Connected to pydev debugger (build 139.574)
2014-11-29 05:46:57,506 4181 INFO ? openerp: OpenERP version 8.0
2014-11-29 05:46:57,506 4181 INFO ? openerp: addons paths: 
['/home/cysnake4713/.local/share/OpenERP/addons/8.0', 
u'/home/cysnake4713/pythonenv/tianv-erp/odoo/addons', 
u'/home/cysnake4713/githome/tianv-erp', 
'/home/cysnake4713/pythonenv/tianv-erp/odoo/openerp/addons']
2014-11-29 05:46:57,506 4181 INFO ? openerp: database hostname: localhost
2014-11-29 05:46:57,506 4181 INFO ? openerp: database port: 5433
2014-11-29 05:46:57,506 4181 INFO ? openerp: database user: openerp_updis
2014-11-29 05:46:58,006 4181 INFO ? openerp.service.server: Evented 
Service (longpolling) running on 0.0.0.0:8072

There is no service listening 8069, So I can't browse odoo in any browser!

However, When I'm using pycharm4 to run odoo v8, Log like this:

/home/cysnake4713/pythonenv/tianv-erp/local/bin/python 
/home/cysnake4713/pythonenv/tianv-erp/odoo/openerp-server -c 
/home/cysnake4713/pythonenv/tianv-erp/odoo/.openerp_serverrc
2014-11-29 05:48:28,164 4218 INFO ? openerp: OpenERP version 8.0
2014-11-29 05:48:28,164 4218 INFO ? openerp: addons paths: 
['/home/cysnake4713/.local/share/OpenERP/addons/8.0', 
u'/home/cysnake4713/pythonenv/tianv-erp/odoo/addons', 
u'/home/cysnake4713/githome/tianv-erp', 
'/home/cysnake4713/pythonenv/tianv-erp/odoo/openerp/addons']
2014-11-29 05:48:28,164 4218 INFO ? openerp: database hostname: localhost
2014-11-29 05:48:28,164 4218 INFO ? openerp: database port: 5433
2014-11-29 05:48:28,164 4218 INFO ? openerp: database user: openerp_updis
2014-11-29 05:48:28,255 4218 INFO ? openerp.service.server: HTTP service 
(werkzeug) running on 0.0.0.0:8069

Everything is working great,

So I also try to debug use pycharm 3.4  , there is no problem, service 
still listen 8069,

I wonder someone have the same problem? It's seems be pycharm version 
problem, but I really don't know how to fix it. Maybe some parameters 
not set right in debug ?

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe