Gihan Chanaka Jayatilaka : Blog : How to use VScode debugger on SLURM nodes?


  1. SSH to your SLURM submission node (which has a public IP submissionnode.umd.edu) using a terminal application and request a compute node (using srun).
  2. Run the command hostname to see the internal IP of the compute node. This will be computenode.umd.edu
  3. Add the following onto your local computer's SSH config. This file is usually stored on ~/.ssh/config

    Host submissionnode
     Hostname submissionnode.umd.edu
     User gihan
    Host computenode
     Hostname computenode.umd.edu
     User gihan
     ProxyCommand ssh -W %h:%p submissionnode


  4. Now you can connect to the compute node directly using remote explorer in VScode and use the debugger as usual.

Last edit 2022-Oct-17