I am using the Remote SSH plugin to load up a project on an EC2 instance. There is some port forwarding magic that the plugin is taking care of. When I try to launch the client in debug mode VS Code opens a browser with a blank page and about:blank as the address.
I created a launch.json file and went through basic debug steps
The blank page when launching the client in debug mode is caused by a mismatch between the port that Visual Studio Code is trying to connect to and the port that the client is actually listening on.
To fix this, you need to make sure that the port that Visual Studio Code is trying to connect to is the same port that the client is listening on. You can do this by editing the
launch.json
file.To edit the
launch.json
file:launch.json
file in a text editor.launch.json
file.Once you have edited the
launch.json
file, Visual Studio Code should be able to connect to the client and start debugging.Here are some additional troubleshooting tips:
If the port is open, you should see a line similar to the following:
If the port is not open, you need to open it before you can start debugging. You can open the port by running the following command:
If you are still having problems, please provide more information about your project and the Remote SSH plugin that you are using.