Using VS Code to debug a WSL application:
wslpath 'C:\Users\$USER\AppData\Local\Programs\Microsoft VS Code\bin\code'
alias code=$(result of that last command)
spack load (any dependencies of the project that need to be loaded)
code .
Windows Subsystem for Linux suddenly unable to run Windows apps? Somebody forgot to provide the interop directions file. Solution here:
WSL2 (Preview) cannot run .exe files: exec format error: wsl.exe · Issue #8952 · microsoft/WSL