# Debugger for command line script (works without REPL)?

**URL:** https://discourse.julialang.org/t/debugger-for-command-line-script-works-without-repl/60286
**Category:** General Usage
**Tags:** question, debugger
**Created:** [April 30, 2021, 2:29am UTC](https://discourse.julialang.org/t/debugger-for-command-line-script-works-without-repl/60286 "2021-04-30T02:29:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mkarikom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkarikom/32/7096_2.png) [@mkarikom](https://discourse.julialang.org/u/mkarikom)
#### Post date: [April 30, 2021, 2:29am UTC](https://discourse.julialang.org/t/debugger-for-command-line-script-works-without-repl/60286/1 "2021-04-30T02:29:49Z")

</div>

Is there a debugger that will allow me to do something like this:

```julia
JULIA_PROJECT=/tmp/testenv julia /tmp/testenv/testdebugger.jl hithere

```

```julia
# testdebugger.jl (does not work)
println(string("julia environment is:\n ",ENV["JULIA_PROJECT"]))

using Revise,Debugger,ArgMacros

println("Parsing command line args...")
function main()
    args = @dictarguments begin
        @argumentrequired String teststr "--arraypath"
    end

    println("this is a test")

    println(teststr)
end

@enter main()

```

Error is:

```julia
ERROR: LoadError: Debugger.jl needs to be run in a Julia REPL

```
