Most of us do console.log to debug the code a remote server, which is very time consuming and takes multiple rounds to identify the bug.
I always prefer to debug code using debugger even in react-native because it saves time.
Just thought to share the process of connecting the debugger in a remote machine, so your all time can also be saved and of course attains bug solving happiness quicker 😛.
So what we need:
Pem file of the server or username and password through which we can enter the server.
Setup ssh port forwarding:
ssh username@remote-address -I "path/to/pem_file/ec2-server.pem" …
Automate the boring task 😁 of deployment
All we have to do is:
Visit iam-admin page and create the service account with required permissions and create the key.