Skip to content

SimonSchrodi/vscode_remote_debugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode_remote_debugging

This repository may contain useful scripts for debugging on a remote cluster.

Note that we are using conda (e.g., mini-forge). If you do not want to use it, you can change the corresponding parts.

How to set up once

  1. Clone this repository into your current working repository, i.e., where you code cool stuff.
  2. Install debugpy and path.
  3. In .vscode/launch.json: Add configuration -> Python -> Remote Attach. You can add any host name and port number (we will configure this in config.conf). You can remove pathMappings. Also remove comments.
  4. Adapt configurations in vscode_remote_debugging/config.conf.

How to debug

  1. Set up a script for debugging similar to vscode_remote_debugging/run_debug.sh.
  2. Grab yourself a GPU, e.g. swrap srun -p super_large_cluster --pty bash.
  3. Run bash vscode_remote_debugging/init.sh.
  4. Run bash vscode_remote_debugging/run_debug.sh (might take a second to start).
  5. Attach to the run via VSCode.
  6. Debug as if you were running the code on your local machine.

About

This repository may contain useful scripts for debugging on a remote slurm cluster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •