Execute .profile at start of remote debug session

Answered

I have several environment variables set up via my .profile script. When I am remote debugging into this system, I would like it to use the same environment as if I were logged in locally and .profile had been run.

Is there a way to do this with PyCharm? I know I can set up environment variables individually for remote debugging but that is a lot of duplication and is error-prone.

1 comment
Comment actions Permalink

Hi! You can execute your .profile file as "Before launch" command in your Run configuration.

0

Please sign in to leave a comment.