1 Start the docker instance
docker run -dit -p 2222:22 cfht/remote-debugging
2 Use sshfs to mount the code:
mkdir -p ~/mnt
sshfs circleci@localhost:/app/ -p 2222 ~/mnt
3 Then open the tunnel for debugging
ssh -R 1234:localhost:1234 circleci@localhost -p 2222
4 Open up py-charm, and load a new project at ~/mnt/app
5 Create a new configuration, select python remote debug.
6 Set the port to 1234
7 Add the import pydevd and listen lines from the configuration page.
8 Run the configuration
-
run
sudo pip install pydevd
-
Run
demo1.sh