It is currently Sat Feb 11, 2012 11:03 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: winpdb
PostPosted: Tue Nov 11, 2008 6:43 pm 
Offline

Joined: Thu Mar 06, 2008 9:29 pm
Posts: 13
hello,

does someone successfully use winpdb (a GUI debugger) in openerp server?
How to make it work? i'm interested by the embeded and remote debugging technic.


Top
 Profile  
 
 Post subject: SUCCEDED
PostPosted: Wed Feb 17, 2010 4:06 pm 
Offline

Joined: Mon Sep 21, 2009 2:20 pm
Posts: 31
I could attach winpdb to openerp and debug remotely.

1. I've installed winpdb in my ubuntu client development workstation
2. I've installed winpdb in my ubuntu openerp server development environment (version 1.4.6)
3. in my ubuntu openerp server i've exported PYTHONPATH
Code:
export PYTHONPATH=/usr/lib/python2.5/site-packages/oldxml

this is to avoid xml import error that arises trying to execute " from xml import dom, xpath"


4. i've launched openerp server from command line using rpdb2
Code:
     rpdb2 -r -d ./openerp-server-5.0.5.py --config=(path to config file)

5. The command asks for a debug password. This password is the one you need to attach winpdb from develepment workstation
6. in winpdb, i've clicked "attach" on file menu. Winpdb asked for a password, i've entered the password i've used in the previous step
7. i've entered the ip address of the server
8. I've selected the source file winpdb proposed to debug (openerp-server-5.0.5.py)
9. i've clicked run from the toolbar (or F5)
10. I've opened the source file i wanted to debug using "file/open source" menu item
11. I've entered the server file path of the file a wanted to debug
12. Winpdb showed the source file
13. i've set breakpoints in the code and make the code being executed using openerp client

Winpdb works Ok, but sometimes i've observed that local variables are not shown in winpdb. I've found a workaround: winpdb shows a rpdb2 command line on its user interface, when I want to observe a variable content I type "exec print the_variable_i_wanted_to_observe". The print statement is executed and shown in the server console.

Hope it helps!!!


Top
 Profile  
 
 Post subject: Re: winpdb
PostPosted: Thu Oct 14, 2010 11:28 pm 
Offline

Joined: Fri Jul 23, 2010 11:15 pm
Posts: 12
Hi,

i'm trying to debug a module with winpdb.

The thing is that i can set breakpoints in server files like fields.py, orm.py and the like but breakpoints in my own source files ( from my module ) are ignored.

can you help ?

thnx.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron

Protected by Anti-Spam ACP