Hello All,

Breakpoints won't work in pydev remote debugging.

Eclipse version  Version: 3.5.1.R35
pydev version  2.0.0.2011040403
python version 2.4 OR 2.6


I have eclipse running in my box, whereas python scripts are in a test server. 
Python scripts should run from that server, because it has to process huge 
amount of data which i can't copy to my local box.

So i gone ahead and tried remote debugging with pydev. Note that i have already 
used eclipse & pydev to debug python scripts in my local box.

I installed latest pydev.
Copied  org.python.pydev.debug_2XXXX/ into test server. Location of debug 
module is same in test server and in my box.
Copied python scripts into my local box. Location of scripts are same in test 
server and in my box.

Added the following lines to the test script in remtoe server.

import sys
sys.path.append('XXXXX/eclipse/plugins/org.python.pydev.debug_2.0.0.2011040403/pysrc')
import pydevd
pydevd.settrace(host='XXX.XX.XX.XX',stdoutToServer=True, stderrToServer=True)

Started Debug server in Eclipse my local box.

Started the script in test box.

When remote debugged first time it prompted for location of the script locally. 
It waits at the first instruction after pydev.settrace().
Everthing is okey if i go step by step, F5/F6.
Whereas when i hit F8, it continues without respecting breakpoints.

debug output (trimmed pydb to java traffic)

DEBUG_TRACE_LEVEL = 1
DEBUG_TRACE_BREAKPOINTS = 2

pydev debugger: warning: psyco not available for speedups (the debugger will 
still work correctly, but a bit slower) ('Connecting to ', 'XX.XX.XX.XX', ':', 
'5678')
('Connected.',)
('received command ', '501\t1\t1.1')

('received command ', '111\t3\t/XXX/test.py\t71\t**FUNC**add_all_fields\tNone')
Added breakpoint:/sas3/XXX/test.py - line:71 - func_name:add_all_fields 
('received command ', '111\t5\t/XXX/test.py\t135\t**FUNC**\tNone')
Added breakpoint:/sas3/XXX/test.py - line:135 - func_name:
('received command ', '101\t7\t')
('received command ', '114\t9\tpid15847_seq1\t277042480\tFRAME')
('received command ', '112\t11\t/XXX/test.py\t135') Removed 
breakpoint:/sas3/XXX/test.py ('received command ', 
'111\t13\t/XXX/test.py\t135\t**FUNC**\tNone')
Added breakpoint:/sas3/XXX/test.py - line:135 - func_name:
('received command ', '106\t15\tpid15847_seq1')
(DEBUG) - cfgparser - 2011-04-21 09:01:22,860 - Processing config file:

Traceback (most recent call last):
  File 
"/XXXX/eclipse/plugins/org.python.pydev.debug_2.0.0.2011040403/pysrc/pydevd_comm.py",
 line 310, in OnRun
    self.sock.send(out) #TODO: this does not guarantee that all message are 
sent (and jython does not have a send all)
error: [Errno 32] Broken pipe

Cheers,
Uday.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to