Remote Debugging Path Mapping Not Working

This is a behavior I experienced when using remote debugging in pycharm professional 2022.*:

setup: local machine (macOS) --> remote machine (linux). Files in the two machines are sync'ed using Dropbox so I do not need the automatic sync function provided in pycharm.

Remote server connection, remote interpreter, and path mapping have been set up. But when debugging at a break point, a copy of the script will open in a new tab, which is located at a different directory locally (~/Library/Caches/.../hello.py). This is a copy file that shares the same content as the original file (~/Dropbox/.../hello.py), but editing this file of course does not edit the original file. Further investigation reveals that newer version of pycharm does not provide option for path mapping configuration in the interpreter setting page, and no option is available to let user deactivate automatic project synchronization. 

My solutions is to downgrade to 2021.* version when path mapping is still functional.

 

0
Hi,

Thank you for reporting the issue.

Do you know if path mapping for run configurations is also affected?
0

请先登录再写评论。