# 'dump' beyond stdout

**URL:** <https://discourse.julialang.org/t/dump-beyond-stdout/111346>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 8, 2024, 11:04am UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346 "2024-03-08T11:04:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![improf](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@improf](https://discourse.julialang.org/u/improf)\
**Post date:** [March 8, 2024, 11:04am UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346/1 "2024-03-08T11:04:35Z")

</div>

My Julia programs generally have number of `mutable struct`s, each containing some multi-dimensional arrays. Sometimes I just want to quickly inspect what is going on with them and for that the best tool I found is `dump`. However it becomes quite unwieldy when the dimensions of my arrays get large.

What I would ideally like is a `dump` that shows its output in a separate window (like for plots), where substructures are collapsable (like the directory tree in a file explorer) and with horizontal and vertical scrollbars (so there is no wrapping which is always confusing when dumping a matrix).

Does such a tool exist? It sounds simple to implement and I think it would be amazing to have.

---

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [March 8, 2024, 11:14am UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346/2 "2024-03-08T11:14:49Z")

</div>

If you’re using VS Code, then the Julia extension adds the “Julia” tab to the Activity Bar. In there you can see all variables defined in the current REPL and open them as tables in their own tab.

---

<div class="post-metadata">

**Author:** ![improf](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@improf](https://discourse.julialang.org/u/improf)\
**Post date:** [March 8, 2024, 3:30pm UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346/3 "2024-03-08T15:30:06Z")

</div>

Thanks, exactly what I needed.

Edit: actually, it seems that most arrays are not viewable as a table in their own tab, even for something as basic as a Vector{Float64} inside a mutable struct. Do you know why that would be the case?

---

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [March 9, 2024, 5:35am UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346/4 "2024-03-09T05:35:07Z")

</div>

Not sure if that’s intentional but you can use the REPL to open data in the table viewer using the `vscodedisplay` function (see [here](https://www.julia-vscode.org/docs/stable/userguide/grid/)).

```julia
struct Test
    a::Vector{Float}
end
x = Test(rand(10))
vscodedisplay(x.a)

```

HTH?

---

<div class="post-metadata">

**Author:** ![improf](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@improf](https://discourse.julialang.org/u/improf)\
**Post date:** [March 9, 2024, 1:39pm UTC](https://discourse.julialang.org/t/dump-beyond-stdout/111346/5 "2024-03-09T13:39:00Z")

</div>

Yes! Thanks again.
