Pycharm hit breakpoint on remote sources

Answered

Hi I'm using pycharm professional, and using remote interpreter, I came up with a problem, as I set a breakpoint on a python file, and start debug running, the program would stop at the break point, but on a copy of the same python file, like `/home/wangtao/.PyCharm2018.1/system/remote_sources/1829616433/-1522253011/mmdet/models/mask_heads/fcn_mask_head.py`, this is not problematic for debugging, but when I jump into definition of some code part, then it will enter another remote file and the blue cursor point shifted a few lines from the right place, for example, start from the step shown the first screen cut, if I go to the definition with F7, then it goes to 

it should stay at

if '_parameters' in self.__dict__:

what can I do to prevent the debugger prompting remote file copies and the problematic behavior?

 

5 comments
Comment actions Permalink

Hi, did you install your project on the remote interpreter in the editable mode with pip install -e?

0
Comment actions Permalink

Hi, thanks for the reply, you mean run pip install -e under remote prj directory?

0
Comment actions Permalink

is this step needed for pycharm remote debug?

0
Comment actions Permalink

Nope, I was wondering if you did it. Do you have a path mapping defined in the Settings | Project ... | Project Interpreter?

0
Comment actions Permalink

Yes I defined path maping in the intepreter

0

Please sign in to leave a comment.