# Debugger stops without hitting a breakpoint

**URL:** <https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378>\
**Category:** Tooling\
**Created:** [November 18, 2020, 12:48pm UTC](https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378 "2020-11-18T12:48:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![acycliq](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@acycliq](https://discourse.julialang.org/u/acycliq)\
**Post date:** [November 18, 2020, 12:48pm UTC](https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378/1 "2020-11-18T12:48:12Z")

</div>

The debugger in VSCode stops despite the fact that there is no breakpoint to stop at. Any idea how to fix this please? See screenshot below (from `logging.jl`)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/f/4ff291300199005ed139dde3207f5dfd721b6b61.png)

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 18, 2020, 1:23pm UTC](https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378/2 "2020-11-18T13:23:11Z")

</div>

… and it does not stop at many breakpoints  
… and it kills the REPL if an `error` occurs

I mostly had to go back to the `println` debugging style.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [November 19, 2020, 10:47am UTC](https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378/3 "2020-11-19T10:47:47Z")

</div>

Do you see the same problems outside of VSCode? For example when using Debugger.jl from a plain REPL?

It’s pretty hard to say more without an explicit series of steps that reproduce the problem.

---

<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:** [November 19, 2020, 11:13am UTC](https://discourse.julialang.org/t/debugger-stops-without-hitting-a-breakpoint/50378/4 "2020-11-19T11:13:09Z")

</div>

This is “just” a bug/regression in JuliaInterpreter handling logging statements:

```julia
julia> using JuliaInterpreter

julia> f(x) = @info x
f (generic function with 1 method)

julia> @interpret f(2)
ERROR: UndefVarError: REPL[6] not defined
Stacktrace:
 [1] collect_args(::Frame, ::Expr; isfc::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:60
 [2] collect_args at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:134 [inlined]
 [3] evaluate_call_recurse!(::Any, ::Frame, ::Expr; enter_generated::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:207
 [4] evaluate_call_recurse! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:201 [inlined]
 [5] eval_rhs(::Any, ::Frame, ::Expr) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:388
 [6] step_expr!(::Any, ::Frame, ::Any, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:531
 [7] step_expr!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:581
 [8] finish!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:14
 [9] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:29 [inlined]
 [10] evaluate_call_recurse!(::Any, ::Frame, ::Expr; enter_generated::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:239
 [11] evaluate_call_recurse! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:201 [inlined]
 [12] eval_rhs(::Any, ::Frame, ::Expr) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:388
 [13] step_expr!(::Any, ::Frame, ::Any, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:531
 [14] step_expr!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/interpret.jl:581
 [15] finish!(::Any, ::Frame, ::Bool) at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:14
 [16] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:29 [inlined]
 [17] finish_and_return! at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/commands.jl:33 [inlined] (repeats 2 times)
 [18] top-level scope at /home/pfitzseb/.julia/packages/JuliaInterpreter/kDn3E/src/construct.jl:762

```

Edit: Should be fixed by [https://github.com/JuliaDebug/JuliaInterpreter.jl/pull/440](https://github.com/JuliaDebug/JuliaInterpreter.jl/pull/440).
