# Very slow debugging reading files

**URL:** <https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947>\
**Category:** New to Julia\
**Tags:** debug, vscode\
**Created:** [February 9, 2021, 6:11pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947 "2021-02-09T18:11:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Post date:** [February 9, 2021, 6:11pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947/1 "2021-02-09T18:11:39Z")

</div>

Hello!

I am trying to go through my code step by step in VSCode and find it unbearably slow when it reaches a section in which it reads from files. As a matter of fact, I cannot debug at all because I had to wait for the whole section to finish at least 30 min, and I don’t have that much time.

What I am doing is go step by step copypasting the code from the editor into a REPL, and try to descend lower when I reach a function in top-level module that does not produce the desired results. Is there a good way to do this?

Thanks!

---

<div class="post-metadata">

**Author:** ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)\
**Post date:** [February 9, 2021, 6:27pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947/2 "2021-02-09T18:27:18Z")

</div>

This advice [Debugging in Juno extremely slow - #4 by tim.holy](https://discourse.julialang.org/t/debugging-in-juno-extremely-slow/53801/4) for Juno applies equally well to VSCode, it may help your case.

---

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [February 9, 2021, 6:28pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947/3 "2021-02-09T18:28:11Z")

</div>

From my point of view the REPL Debbuger is faster (especially with compiled mode)

[https://github.com/JuliaDebug/Debugger.jl](https://github.com/JuliaDebug/Debugger.jl)

---

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [February 9, 2021, 6:35pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947/4 "2021-02-09T18:35:34Z")

</div>

This link may be useful

> **[Debugging in Julia - Two different ways](https://opensourc.es/blog/basics-debugging/)**
>
> Different ways of debugging Julia code without using println. Some deep, some fast and fun.
