Remote debugging with vs code

As I had mentioned a while ago, I was trying to setup an environment so that I can use the inbuilt debugging tools in VSCode by pointing it at the correct python interpreter when inside a singularity container.

Following this thread, it looks like it could be possible, but it also assumes it is possible to ssh onto a compute node externally. As far as I know this is not allowed on baobab.

However, if I have an active job running on said node, would this work? What would the proxy command look like in that case (for instance, for a job running on gpu012)

Cheers,
Deb