[Pydev-code] pydevd cross platform use
Brought to you by:
fabioz
From: Dan N. <dne...@ya...> - 2024-09-22 21:32:36
|
Hello, According to https://www.pydev.org/manual_adv_remote_debugger.html under the title “Important Points: Note 3": when pydevd runs one machine and the program being debugged runs on another machine and "the paths are not exactly the same, some adjustments have to be done in the target machine”. Again, according to the note: "Aside from passing the files in eclipse/plugins/org.python.pydev_x.x.x/pysrc to your target machine, the file pydevd_file_utils.py must be edited to make the path translations from the client machine to the server machine and vice-versa.” I am running Eclipse/PyDev on a Macintosh and want to debug a python program running on Linux Mint, so I first looked for eclipse/plugins/org.python.pydev_x.x.x/pysrc on the Mac, but could not find it. I opened /Applications/Eclipse.app using “Show Package Contents” and it showed:  As you can see, there is no org.python.pydev_x.x.x directory in the Eclipse package. Perhaps I am looking in the wrong place. If so, could you point me to the right place? Also, it says in pydevd_file_utils.py: @note: in this context, the server is where your python process is running and the client is where eclipse is running. E.g.: If the server (your python process) has the structure /user/projects/my_project/src/package/module1.py and the client has: c:\my_project\src\package\module1.py the PATHS_FROM_ECLIPSE_TO_PYTHON would have to be: PATHS_FROM_ECLIPSE_TO_PYTHON = [(r'c:\my_project\src', r'/user/projects/my_project/src’)] In this case (according to the documentation) the client is on my Macintosh and the server in on Linux Mint. It isn’t clear where my_project would be located on either the Mac or Linux Mint. Here is where the workspace for the eclipse project is located: "cd /Users/dnessett/eclipse-workspace2/RemoteHelloWorld/RemoteHelloWorld ls RemoteHelloWorld.py" Any advice? Dan Nessett |