# Debug in remote julia mode

**URL:** <https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870>\
**Category:** Tooling\
**Created:** [June 3, 2019, 2:39am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870 "2019-06-03T02:39:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mslichao/32/8732_2.png) [@mslichao](https://discourse.julialang.org/u/mslichao)\
**Post date:** [June 3, 2019, 2:39am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/1 "2019-06-03T02:39:52Z")

</div>

I tried to debug under remote julia mode, the operator and callstack seems normal but the juno can’t open the source file.

I used ftp remote edit, I think it is not support this now, right?

Do we have plan to support debugging under remote julia mode?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 3, 2019, 9:04am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/2 "2019-06-03T09:04:13Z")

</div>

This does work:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/3/d3e75a1a59c7c0f605c3ea339008d8948edead32.png)  
But due to a limitation of ftp-remote-edit we can’t open any files that aren’t somewhere in a child directory of the “initial directory” you can set in the server-specific ftp-remote-edit settings. I’ll look into this again – maybe there’s a way around it that I didn’t see earlier.

Also, please only post either here or on GitHub, not both ([cross link](https://github.com/JunoLab/Juno.jl/issues/308)).

---

<div class="post-metadata">

**Author:** ![mslichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mslichao/32/8732_2.png) [@mslichao](https://discourse.julialang.org/u/mslichao)\
**Post date:** [June 3, 2019, 9:30am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/3 "2019-06-03T09:30:53Z")

</div>

The file is in the child directory of the “initial directory”, I can open it through the remote panel.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/8/98faa708c9cd1b3302a88ac061706f54287e63d9.png)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 3, 2019, 10:54am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/4 "2019-06-03T10:54:11Z")

</div>

Ah, indeed. This was a bug that only happened on Windows. Should be fixed with ink v0.10.10, so please update and report back!

---

<div class="post-metadata">

**Author:** ![mslichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mslichao/32/8732_2.png) [@mslichao](https://discourse.julialang.org/u/mslichao)\
**Post date:** [June 4, 2019, 2:56am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/5 "2019-06-04T02:56:32Z")

</div>

Thanks for your quick fix, and ink v0.10.10 works well on my windows.

One more thing, the “initial directory” in ftp-remote-edit setting should be a real path (I used symbolic links in the beginning but it not works, not sure this is a bug or by design)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 4, 2019, 8:55am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870/6 "2019-06-04T08:55:00Z")

</div>

Glad it’s working now 🙂

> [@mslichao](#):
>
> One more thing, the “initial directory” in ftp-remote-edit setting should be a real path (I used symbolic links in the beginning but it not works, not sure this is a bug or by design)

Not sure if that’s possible, but do open an issue about that [here](https://github.com/h3imdall/ftp-remote-edit/issues) (feel free to ping me there).
