Hi Sarah Poulin,
I don't know if you succeded to debug on the remote server. I had your same problem and after some troubles and headaches I found the correct way to develop and debug Moodle code on a remote server (via SSH connection) through Visual Studio Code in my desktop with Windows 10.
At the end I had to add - in launch.json configuration of VS Code - hostname with IP address of remote server where Moodle and Xdebug are running.
"configurations": [
{
"name": "Listen for Xdebug",
"request": "launch",
"type": "php",
"hostname": "IP ADDRESS",
"port": 9003,
"log": true
},
After that I changed the configuration of php.ini file in remote server regarding Xdebug as follows
xdebug.client_host = "IP address of remote server"
I think could be very useful for all the beginners to add these informations to this page:
in the section
Develop over an ssh connection
with the configuration to start.
Hope we can help other developers to find their way to debug on remote server.
Nicola