Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Trouble with Debug start under Eclipse/PyDev

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
pydeveclipsedebuggingodoo9
1 Répondre
7452 Vues
Avatar
Jeffrey Russell

I'm having difficulty debugging Odoo 9 under Eclipse/PyDev. When I ;Run; Odoo, everything starts correctly and runs great. When I try to 'Debug' (using the same Run/Debug configuration) Odoo starts differently. It does not start HTTP service it starts 'Evented Service (longpolling) on port 8072. See the startup console outputs below.

What am I doing wrong?

Starting with 'Run':

2016-05-02 00:14:37,829 31493 INFO ? openerp: OpenERP version 9.0c

2016-05-02 00:14:37,829 31493 INFO ? openerp: addons paths: ['/home/mmh/.local/share/Odoo/addons/9.0', u'/home/mmh/git/odoo/addons', u'/home/mmh/git/mmh-odoo/addons', '/home/mmh/git/odoo/openerp/addons']

2016-05-02 00:14:37,829 31493 INFO ? openerp: database: mmh@default:default

2016-05-02 00:14:38,047 31493 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

2016-05-02 00:14:38,067 31493 INFO mmh-dev-live openerp.modules.loading: loading 1 modules...

2016-05-02 00:14:38,083 31493 INFO mmh-dev-live openerp.modules.loading: 1 modules loaded in 0.02s, 0 queries

2016-05-02 00:14:38,138 31493 INFO mmh-dev-live openerp.modules.loading: loading 67 modules...

2016-05-02 00:14:38,175 31493 INFO ? openerp.addons.bus.models.bus: Bus.loop listen imbus on db postgres

2016-05-02 00:14:38,216 31493 INFO mmh-dev-live openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

2016-05-02 00:14:38,810 31493 INFO mmh-dev-live openerp.modules.loading: 67 modules loaded in 0.67s, 0 queries

2016-05-02 00:14:40,098 31493 INFO mmh-dev-live openerp.modules.loading: Modules loaded.

Starting with 'Debug':

pydev debugger: starting (pid: 31445)

2016-05-02 00:11:28,793 31445 INFO ? openerp: OpenERP version 9.0c

2016-05-02 00:11:28,795 31445 INFO ? openerp: addons paths: ['/home/mmh/.local/share/Odoo/addons/9.0', u'/home/mmh/git/odoo/addons', u'/home/mmh/git/mmh-odoo/addons', '/home/mmh/git/odoo/openerp/addons']

2016-05-02 00:11:28,797 31445 INFO ? openerp: database: mmh@default:default

2016-05-02 00:11:29,329 31445 INFO ? openerp.service.server: Evented Service (longpolling) running on 0.0.0.0:8072

If I hit the server from a browser on port 8072 Odoo then proceeds to load modules and the correct database but then does not reply to anything?

The doc/help article I found on searching the site debugging under PyDev is for Odoo 7 and it shows debugging Odoo starting fine multithreaded when starting PyDev/Debug configurations.

0
Avatar
Ignorer
Avatar
Giuliano Lotta
Meilleure réponse

I can confirm same behaviour on Odoo 8, with Eclipse Neon + Pydev 5.1.2 + Java 8

I noticed a bug reported for Pydev 5.1.2 AND Odoo debug, under

https://sw-brainwy.rhcloud.com/tracker/PyDev/573


I would like to highlight that having a Smart IDE + visual debugger is a great help for a fast and efficient production.

It would be strategic to have a configuration to keep as a valid start (should it be PyCharm, Eclipse or other)

And it would be nice if a kind of tutorial of how to setup such an IDE would be preparad OFFICIALLY from Odoo sas

BR

0
Avatar
Ignorer
Giuliano Lotta

I digged in the problem and found a solution similar for pycharm:

Try commenting out the following lines at the top of openerp/__init__.py. You may have gevent installed:

if sys.modules.get("gevent") is not None:

evented = True

And then restart the debugger.

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Problems with making openerp 7 work with Eclipse
pydev eclipse
Avatar
0
mars 15
4941
PyDev workspace issue
setup pydev eclipse
Avatar
Avatar
Avatar
2
mars 15
8646
How to debug Odoo in Eclipse under Winows? Résolu
debug openerp7 eclipse debugging
Avatar
Avatar
Avatar
Avatar
Avatar
10
déc. 23
25712
Question mark appeared on PyDev package explorer folder after scraffolding a new module
modules python pydev eclipse
Avatar
0
déc. 15
4619
How to develop on Mac OS for OpenERP? Résolu
macosx pydev eclipse virtualization debugging pdb vagrant docker
Avatar
Avatar
Avatar
2
févr. 24
12486
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now