Re: [Pydev-code] pydevd cross platform use
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2024-09-23 11:06:58
|
Hello Dan, That documentation was really outdated (you can do that in the preferences now). See the updates in https://www.pydev.org/manual_adv_remote_debugger.html As a note, this list should be kept for things related to the development of PyDev, for regular questions on usage, please use `StackOverflow` to ask questions with the `pydev` tag. Best regards, Fabio Em dom., 22 de set. de 2024 às 18:33, Dan Nessett via pydev-code < pyd...@li...> escreveu: > 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: > > [image: Screenshot 2024-09-22 at 2.27.29 PM.png] > > 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 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |