# Vscode how to examine stdout in the debugger

**URL:** <https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378>\
**Category:** New to Julia\
**Tags:** package, debugging, vscode\
**Created:** [February 13, 2022, 10:25pm UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378 "2022-02-13T22:25:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon69491625](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Post date:** [February 13, 2022, 10:25pm UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378/1 "2022-02-13T22:25:18Z")

</div>

hi all  
just starting out in julia. Am using vscode and want to examine what the contents of stdout is and can’t figure out how to do it. I’m opening a tcp connection then starting an asynch reader loop that processes the callbacks from a series of requests ( with a unique identifier) I post to the tcp connection. It works well but I would like to examine the contents of stdout to help me learn how this all fits together.  
My intention is to route the stdout to a channel and onto another julia script but first I want to get a handle on what I am sending.  
Please remember this is all new to me.

---

<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:** [February 14, 2022, 10:25am UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378/2 "2022-02-14T10:25:56Z")

</div>

Stdout should be piped to the “Debug Console” in VS Code.

---

<div class="post-metadata">

**Author:** ![anon69491625](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Post date:** [February 14, 2022, 11:11am UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378/3 "2022-02-14T11:11:05Z")

</div>

thanks for the reply.  
I can see it in the debug console but want to examine it in the code. I don’t know how to do that. So how do I take the output from stdout and store it in a structure in code please?

---

<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:** [February 14, 2022, 11:12am UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378/4 "2022-02-14T11:12:46Z")

</div>

Use Suppressor.jl or roll your own solution with `redirect_stdout`. Depending on how/when you print you might also be able to supply your own output stream (typically an `IOBuffer`) directly in the `print` function call.

---

<div class="post-metadata">

**Author:** ![anon69491625](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Post date:** [February 14, 2022, 12:11pm UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378/6 "2022-02-14T12:11:41Z")

</div>

Hi there  
thanks so much for your solutions to the problem. I will certainly look into them. Right now I am tending towards rolling my own IObuffer stream as I REALLY need to get to grips with this functionality in Julia. Thanks again.
