Debugging on remote: Couldn't apply path mapping to the remote file.

I am trying to debug a script using a remote interpreter via SSH. I am able to step through my own code just fine, but when I try to step into imported code, it displays an error about the path mapping. For example if I have a script like this:

```

import numpy

numpy.ones(1)

```

When I step into line two, I get the following:

```

Couldn't apply path mapping to the remote file. /data/anaconda3/envs/test_env/lib/python3.8/site-packages/numpy/core/numeric.py can't be found in project. You can continue debugging, but without the source. To fix that you can do one of the following:

```

I have tried Invalidating the cache and I have tried to follow the solution given here (https://stackoverflow.com/questions/72851683/pycharm-remote-debug-issue-couldnt-apply-path-mapping-to-the-remote-file) (this did not work because ` File> Settings > Project >Project Structure> +Add Content Root ` shows only local files, but the interpreter is remote). No luck so far, though.

 

0

请先登录再写评论。