Thread: [Pydev-users] [pydev - Users] Remote Debugging
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-10-16 16:49:01
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3965931 By: surenreddy1 I am trying to evaluate the IDE and see if this helps us with remote debugging. We have a server that is linux based that has mod_python configured. We are using samba shares to see the code and develop on a windows XP box using the pydev extensions. I wanted to try out a really simple example to see how to set up the remote debugging aspect and I am not able to. test test/src test/src/root test/src/root/nested myhandler.py pydevd*.py form.html that calls the myhandler.py for its action method. when I submit on form.html this is the error I get to debug, the python script errors out with this code. Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 136, in handler result = util.apply_fs_data(object, req.form, req=req) File "/usr/lib64/python2.4/site-packages/mod_python/util.py", line 361, in apply_fs_data return object(**args) File "/var/www/html/python/src/root/myhandler.py", line 8, in formHandler import pydevd; pydevd.settrace('192.168.20.216') ImportError: No module named pydevd As suggested, I copied all the pydev*.py files from the org.*.debug folder into the same folder as myhandler.py. Inspite of both being in the same folder, the pydevd does not get recognized. Any ideas? Thanks, Suren ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-16 19:07:22
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3966314 By: fabioz Your pythonpath doesn't seem right if it is not finding the pydevd* files (so, make sure those files are contained within your pythonpath). Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-16 19:38:13
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3966365 By: surenreddy1 Yes, that was correct. I had to move the files under /usr/lib64/python2.4/site-packages for now until I figure out how to set the pythonpath. In the meanwhile, this is what I get now. I defined a function called eclipseDebugTester def eclipseDebugTester(): print "Setting Trace" import pydevd; pydevd.settrace('192.168.20.216') a = 1; b = 2; return a + b; When I call the http://192.168.20.216/python/src/root/myhandler.py/eclipseDebugTester, here is what I get. Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 136, in handler result = util.apply_fs_data(object, req.form, req=req) File "/usr/lib64/python2.4/site-packages/mod_python/util.py", line 361, in apply_fs_data return object(**args) File "/var/www/html/python/src/root/myhandler.py", line 14, in eclipseDebugTester import pydevd; pydevd.settrace('192.168.20.216') File "/usr/lib64/python2.4/site-packages/pydevd.py", line 805, in settrace debugger.connect(host, 5678) File "/usr/lib64/python2.4/site-packages/pydevd.py", line 200, in connect s = startClient(host, port) File "/usr/lib64/python2.4/site-packages/pydevd_comm.py", line 251, in startClient sys.exit(1) SystemExit: 1 ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-16 23:01:55
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3966622 By: fabioz That happens after timing out for the connection with the server (that should be already started within Eclipse)... You have to check if you have some firewall enabled there (and if the client is already started) -- The port that the debugger uses is 5678. Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-17 00:47:28
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3966697 By: surenreddy1 I disabled my firewall. Still no luck. Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 136, in handler result = util.apply_fs_data(object, req.form, req=req) File "/usr/lib64/python2.4/site-packages/mod_python/util.py", line 361, in apply_fs_data return object(**args) File "/var/www/html/python/src/root/myhandler.py", line 18, in eclipseDebugTester import pydevd; pydevd.settrace('192.168.20.216') File "/usr/lib64/python2.4/site-packages/pydevd.py", line 850, in settrace debugger.setSuspend(t, CMD_SET_BREAK) File "/usr/lib64/python2.4/site-packages/pydevd.py", line 466, in setSuspend def setSuspend(self, thread, stop_reason): File "/usr/lib64/python2.4/site-packages/pydevd.py", line 527, in trace_dispatch sys.exit(0) SystemExit: 0 ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-17 22:25:58
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3968522 By: fabioz Which pydev/eclipse version are you using? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |
From: SourceForge.net <no...@so...> - 2006-10-18 14:28:05
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3969492 By: surenreddy1 Eclipse SDK Version: 3.2.1 Build id: M20060921-0945 Plugin Details 1.2.4 My localhost tests also fail. As a precaution, I have added the port 5678 to my safe list of ports to avoid the firewall mess. Also, to avoid the pydevd* files not being found, I have added them to the site-packages to ensure they get found. I am past that problem. Mod_python error: "PythonHandler mptest" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "C:/Program Files/Apache Group/Apache2/htdocs/test/mptest.py", line 9, in handler import pydevd; pydevd.settrace() File "C:\Python24\lib\site-packages\pydevd.py", line 805, in settrace debugger.connect(host, 5678) File "C:\Python24\lib\site-packages\pydevd.py", line 200, in connect s = startClient(host, port) File "C:\Python24\lib\site-packages\pydevd_comm.py", line 251, in startClient sys.exit(1) SystemExit: 1 ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |