# @run macro

**URL:** <https://discourse.julialang.org/t/run-macro/52981>\
**Category:** VS Code\
**Created:** [January 7, 2021, 10:14am UTC](https://discourse.julialang.org/t/run-macro/52981 "2021-01-07T10:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laco\_Kovac](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laco_kovac/32/20684_2.png) [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Post date:** [January 7, 2021, 10:14am UTC](https://discourse.julialang.org/t/run-macro/52981/1 "2021-01-07T10:14:30Z")

</div>

I am trying to debug my code in VS Code.  
Presenter in the video [JuliaCon 2020 | Using VS Code for Julia development | David Anthoff](http://www.youtube.com/watch?v=IdhnP00Y1Ks&t=16m59s) uses @run macro.  
I cannot find it/use it:

```julia
julia> @run MyModule.myFunction()
ERROR: LoadError: UndefVarError: @run not defined
in expression starting at REPL[19]:1

```

Thank you.

---

<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:** [January 7, 2021, 10:17am UTC](https://discourse.julialang.org/t/run-macro/52981/2 "2021-01-07T10:17:51Z")

</div>

You need to run that line in the integrated REPL (the one opened with the `Julia: Start REPL` command).

---

<div class="post-metadata">

**Author:** ![Laco\_Kovac](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laco_kovac/32/20684_2.png) [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Post date:** [January 7, 2021, 4:56pm UTC](https://discourse.julialang.org/t/run-macro/52981/3 "2021-01-07T16:56:06Z")

</div>

Thank you. With integrated REPL I can run @run marco. However…

My function executes web service:

```julia
function run()
    HTTP.serve(requestHandler, "0.0.0.0", 8080)
end

```

When I set a breakpoint inside my requestHandler and use @run macro, Pause, Restart etc. buttons are nicely activated on top of VS Code. But when I call from outside on my service, execution doesn’t stop at the breakpoint (at any breakpoint), but it definitely runs, because it prints output to the integrated Julia REPL terminal.
