# Plotting from Debugger.jl?

**URL:** <https://discourse.julialang.org/t/plotting-from-debugger-jl/82006>\
**Category:** General Usage\
**Tags:** plots, debugger\
**Created:** [May 31, 2022, 5:04pm UTC](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006 "2022-05-31T17:04:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnomotani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnomotani/32/26753_2.png) [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Post date:** [May 31, 2022, 5:04pm UTC](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006/1 "2022-05-31T17:04:46Z")

</div>

Inside a debugging session with `Debugger.jl`, is it possible to display plots (I’m currently using Plots.jl, but willing to use any package) from the julia prompt? I can save the plots to disk, but it would be nice to just pop them out into a window!

---

<div class="post-metadata">

**Author:** ![StevenWhitaker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevenwhitaker/32/9749_2.png) [@StevenWhitaker](https://discourse.julialang.org/u/StevenWhitaker)\
**Post date:** [May 31, 2022, 6:28pm UTC](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006/2 "2022-05-31T18:28:58Z")

</div>

Yes.

```julia
(@v1.7) pkg> st
      Status `~/.julia/environments/v1.7/Project.toml`
  [31a5f54b] Debugger v0.7.6
  [91a5bcdd] Plots v1.27.6

julia> using Debugger

julia> function f(x)
       x + 1
       end
f (generic function with 1 method)

julia> @enter f(1)
In f(x) at REPL[3]:1
 1 function f(x)
>2 x + 1
 3 end

About to run: (+)(1, 1)
1|julia> using Plots # First press ` (backtick) to enter REPL mode

1|julia> plot(randn(100)) # Plot appears in separate window

1|debug> c # First press backspace to exit REPL mode
2

```

---

<div class="post-metadata">

**Author:** ![johnomotani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnomotani/32/26753_2.png) [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Post date:** [May 31, 2022, 7:49pm UTC](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006/3 "2022-05-31T19:49:42Z")

</div>

Thanks @StevenWhitaker. It does work for me now as well. I upgraded Plots.jl to the latest version which might have fixed things for me.
