# Is there a way to debug in VS Code using the remote SSH extension?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845>\
**Category:** VS Code\
**Tags:** debug, ssh\
**Created:** [November 6, 2023, 1:57am UTC](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845 "2023-11-06T01:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JakeWren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakewren/32/202475_2.png) [@JakeWren](https://discourse.julialang.org/u/JakeWren)\
**Post date:** [November 6, 2023, 1:57am UTC](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845/1 "2023-11-06T01:57:33Z")

</div>

I am on a Linux cluster and the details of the SSH plugin can be found [here](https://code.visualstudio.com/blogs/2019/10/03/remote-ssh-tips-and-tricks).

After configuring my launch.json file, and then “Run” → “Start Debugging”, it loads for a bit (looping blue bar), but then stops and nothing happens.

If I instead “Debug file in new process”, I get:  
**Cannot read properties of undefined (reading ‘file’)**.

Here is my .json:

```julia
{
    "version": "0.2.0",
    "configurations": [
        {
            "address": "hpc.haastech.org",
            "localRoot": "/home/jakewren/conwel/cleaning",
            "name": "Attach to Remote",
            "port": 22,
            "remoteRoot": "/home/jakewren/conwel/cleaning",
            "request": "attach",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "node"
        }
    ]
}

```

Also, I can run with out any problems.  
Here is my jobscript:

```julia
#!/usr/bin/bash

#BSUB -n 1
#BSUB -e /home/jakewren/conwel/cleaning/%J.err
#BSUB -o /home/jakewren/conwel/cleaning/%J.out

cd /home/jakewren/conwel/cleaning
/apps/src/julia-1.8.5/bin/julia sc_clean.jl

```

And from the command line:  
`bsub <run_sc_clean.sh`

---

<div class="post-metadata">

**Author:** ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Post date:** [October 4, 2024, 12:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845/2 "2024-10-04T12:32:25Z")

</div>

Did you ever found a solution? I have a similar configuration (i.e. remote cluster, using remote-ssh in VS Code). When I try to debug, it seems to run endlessly without stopping (e.g. waited for 10-15 minutes).

Thanks!
