# Is there a trick to perform "run until line xxx" in ASTInterpreter2?

**URL:** <https://discourse.julialang.org/t/is-there-a-trick-to-perform-run-until-line-xxx-in-astinterpreter2/11511>\
**Category:** General Usage\
**Created:** [June 7, 2018, 4:03pm UTC](https://discourse.julialang.org/t/is-there-a-trick-to-perform-run-until-line-xxx-in-astinterpreter2/11511 "2018-06-07T16:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhong\_Pan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhong_pan/32/19872_2.png) [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Post date:** [June 7, 2018, 4:03pm UTC](https://discourse.julialang.org/t/is-there-a-trick-to-perform-run-until-line-xxx-in-astinterpreter2/11511/1 "2018-06-07T16:03:02Z")

</div>

Currently Juno has this nice debugging GUI that integrates with ASTInterpreter2. However, sometimes I’m just using a simple Julia console and still want to do step-through debugging.

I know I should do “using ASTInterpreter2” and then “@enter” into the function I want to step through. But once inside, I don’t know how to perform “run until line xxx”. Juno debugger has this “run to cursor” button, but in plain text console under ASTInterpreter2 I couldn’t find the equivalent command. Help does not seem to provide an answer:

```julia
1|debug > ?
  Basic Commands:
  - n steps to the next line
  - s steps into the next call
  - finish runs to the end of the function
  - bt shows a simple backtrace
  - `stuff runs stuff in the current frame's context
  - fr v will show all variables in the current frame
  - f n where n is an integer, will go to the n-th frame.
  Advanced commands:
  - nc steps to the next call
  - se does one expression step
  - si does the same but steps into a call if a call is the next expression
  - sg steps into a generated function

```

Does anyone know how to do it? Thanks!!
