Skip to Content
Menu
This question has been flagged
2 Replies
5964 Views

Hi,

I'm on the really hard mission to enable debugging for OpenERP7 on Windows. My wish is to be able to set breakpoints in modules within my Windows Eclipse IDE and browse across python objects.

I googled some tutorials to enable it and found one, but it is not very clear: This is a link -> debug-openerp-python-code-in-eclipse.blogspot.in

According to the tutorial I opened the Run Configurations and entered my current Module Project which is located in C:\Tools\OpenERP7\Server . This is no problem.

Afterwards, it says to choose the main module file openerp-server within OpenERP7\Server\server -- BUT -- there is no openerp-server file! Eclipse says, it must be a python file containing a __main__ method. Do I have to install the sources version of openerp or why is there no openerp-server file located in my \server directory?

Avatar
Discard
Best Answer

does this help ?

How to set up remote development in Eclipse for Python? (the “remote” part)

Avatar
Discard
Author

Thanks, but it doesn't. There is an explanation for general remote debugging which is not helping in my case. It requires that debugging locally is already possible. But I don't know how to debug. I think the Problem is, that the server is an executable exe-file and I need the server as python script, so that Eclipse can execute the server python script. BY THE WAY: I downloaded the openerp source and built it finally. Surprisingly, it doesn't contain the server. So I think I have to download and built the server source explicitly??? I'm confused..

Author Best Answer

Guys! I DID IT! To make debugging possible for eclipse on windows, you can follow the tutorial I mentioned before -> -> debug-openerp-python-code-in-eclipse.blogspot.in

But following additional information is necessary to make it possible: 1. You have to use the source version. Only there, you find the file openerp-server which you can rename to openerp-server.py if you want. 2. Then, you can enter for the main module the diret path to the openerp-server file. You may have to type in the path directly.

Avatar
Discard

Hi, I've been trying to debug OpenERP7 on Windows too. Could you please tells me how to build the source version on Windows? Or any references that you used to build OpenERP7 on Windows, please.

Related Posts Replies Views Activity
5
Jul 20
94521
0
Jun 15
5032
4
Mar 23
18795
2
Jul 19
3286
0
Mar 15
3809