# Pkg.status and DataFrame operations fail in Juno Debugger

**URL:** <https://discourse.julialang.org/t/pkg-status-and-dataframe-operations-fail-in-juno-debugger/28070>\
**Category:** Juno\
**Tags:** dataframes\
**Created:** [August 28, 2019, 12:19am UTC](https://discourse.julialang.org/t/pkg-status-and-dataframe-operations-fail-in-juno-debugger/28070 "2019-08-28T00:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milesf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milesf/32/9289_2.png) [@milesf](https://discourse.julialang.org/u/milesf)\
**Post date:** [August 28, 2019, 12:19am UTC](https://discourse.julialang.org/t/pkg-status-and-dataframe-operations-fail-in-juno-debugger/28070/1 "2019-08-28T00:19:34Z")

</div>

I cannot execute either of the following functions successfully with the Juno debugger.  
They run fine outside of the debugger, however.

### Function 1

```julia-auto
function df_debug1()
    df = DataFrame(A=1:3, B=4:6)
    df1 = hcat(df[!,[:A]], df[!,[:B]])
end

```

In the debugger from `Juno.@enter df_debug1()`, I see:

```julia-auto
ERROR: MethodError: no method matching getfield(Core, Symbol("#kw##invoke"))(::NamedTuple{(:makeunique, :copycols),Tuple{Bool,Bool}}, ::typeof(invoke), ::typeof(DataFrames.hcat!), ::Type{Tuple{DataFrame,AbstractDataFrame}}, ::DataFrame, ::DataFrame)

```

Outside of the debugger I see:

```julia-auto
3×2 DataFrame
│ Row │ A │ B │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
│ 1 │ 1 │ 4 │
│ 2 │ 2 │ 5 │
│ 3 │ 3 │ 6 │

```

### Function 2

```julia-auto
function df_debug2()
    Pkg.status("DataFrames")
end

```

In the debugger from `Juno.@enter df_debug2()`, I see:

```julia-auto
ERROR: BoundsError: attempt to access "/home/miles/projects/my_project/Project.toml"

```

Outside of the debugger I see:

```julia-auto
    Status `~/projects/my_project/Project.toml`
  [a93c6f00] + DataFrames v0.19.3

```

---

<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:** [August 28, 2019, 4:06pm UTC](https://discourse.julialang.org/t/pkg-status-and-dataframe-operations-fail-in-juno-debugger/28070/2 "2019-08-28T16:06:37Z")

</div>

That seems to be a [JuliaInterpreter.jl](https://github.com/JuliaDebug/JuliaInterpreter.jl) bug. Care to open an issue over there?

---

<div class="post-metadata">

**Author:** ![milesf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milesf/32/9289_2.png) [@milesf](https://discourse.julialang.org/u/milesf)\
**Post date:** [August 28, 2019, 5:00pm UTC](https://discourse.julialang.org/t/pkg-status-and-dataframe-operations-fail-in-juno-debugger/28070/3 "2019-08-28T17:00:32Z")

</div>

Thanks for the tip. Did not consider using the CLI debugger outside of Juno.  
Filed [https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/328](https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/328)
