Pycharm wsl2远程调试:远程文件<remote_file_path>映射到本地路径<local_file_path>,找不到

Mar*_*itn 6 pycharm wsl-2

导入时,pycharm 上的远程调试器无法找到 wsl2 PYTHONPATH 中的模块。我在该导入行处设置了一个调试行断点,然后进入代码,一个名为的文件<frozen importlib._bootstrap>打开并通知我:

Remote file /mnt/c/Users/wilso/Desktop/Korem_lab/git/  is mapped to the local path C:\Users\wilso\Desktop\Korem_lab\git\  and can't be found. 
You can continue debugging, but without the source. 
To fix that you can do one of the following:
Edit settings of path mappingcin remote debug configuration
...
Run Code Online (Sandbox Code Playgroud)

因此,我转到路径映射配置以确保远程和本地链接正确,但错误并没有消失。这只是 pycharm 端的一个错误吗?这非常令人沮丧。

小智 2

是的,恐怕是这样,而且这是一个长期存在的错误。例如,请参阅此问题。