PyCharm - Remote Debug w/ Remote Source
I wish to perform remote debugging with remote source.
I have set up using SFTP for remote files and Debug Server for remote debug.
I can not successfully stop at breakpoints in remote code. PyCharm seemingly wants a local file for a break point. I am informed
warning: trying to add breakpoint to file that does not exist:
the files are 100% remote. There is nothing to map.
They are located on the same machine that the remote debugging is coming from. I can not move the files locally. It is unfeasible to use sshfs to mount the remote directory somewhere local.
How can I get breakpoints to work using remote debug server with fully remote source?
Upload ID 2021_02_21_Ckz5GpEyB4Cmq5RW for screenshot.
Please sign in to leave a comment.
Hi,
Unfortunately, that's not possible. Remote interpreter and remote debugger functionality is designed to work on local files that are being synced remotely.
The use case where one has been using pdb to develop on a remote server and then one purchases PyCharm Pro to do IDE debugging seems to be one that should at least enjoy a HowTo page somewhere. After all, the poor SOBs like myself who forked over the money to you for precisely this reason find themselves overwhelmed with the (many) vagaries of the existing HowTo's for remote debugging, combined with the basic learning curve.