Skip to content

Continue ('c') does not stop at breakpoint #378

@ederag

Description

@ederag

Trying to debug Pluto.jl in julia-1.10.9, a breakpoint can be set, but it is bypassed:

In #update_run!#249(kwargs, , args) at /home/ederag/share/prog/julia/dev/Pluto/src/evaluation/Run.jl:496
...
1|debug> bp add 101
1] /home/ederag/share/prog/julia/dev/Pluto/src/evaluation/Run.jl:101

1|debug> c
to_delete_vars = Set{Symbol}()   # from @show to_delete_vars on line 102

The README states that (emphasis mine)

A workaround is to use "compiled mode" which is toggled by pressing C in the debug REPL mode (note the change of prompt color).
When using compiled mode, code that is stepped over will be executed by the normal julia compiler and run just as fast as normally.
The drawback is of course that breakpoints in code that is stepped over are missed.

It's an uppercase C, but maybe lowercase c also bypasses breakpoints ? The help is clear though:

1|debug> ?
  - C: toggle compiled mode
  - c: continue execution until a breakpoint is hit

Or could it be due to Debugger being pinned down, maybe due to julia version (unclear to me)

(@v1.10) pkg> update
    Updating registry at `/usr/local/build/julia/depot/registries/General.toml`
  No Changes to `/usr/local/build/julia/depot/environments/v1.10/Project.toml`
  No Changes to `/usr/local/build/julia/depot/environments/v1.10/Manifest.toml`

(@v1.10) pkg> status -m Debugger
⌃ [31a5f54b] Debugger v0.7.11

(@v1.10) pkg> status --outdated
Status `/usr/local/build/julia/depot/environments/v1.10/Project.toml`
⌅ [f68482b8] Cthulhu v2.16.5 (<v2.17.2): julia
⌃ [31a5f54b] Debugger v0.7.11 (<v0.7.13)
⌅ [c3a54625] JET v0.9.18 (<v0.10.6): julia
⌃ [295af30f] Revise v3.7.5 (<v3.8.0)

(@v1.10) pkg> add --preserve=all [email protected]
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package JuliaInterpreter [aa1ae85d]:
 JuliaInterpreter [aa1ae85d] log:
 ├─possible versions are: 0.1.1-0.10.3 or uninstalled
 ├─restricted to versions 0.9.46 by an explicit requirement, leaving only versions: 0.9.46
 └─restricted by compatibility requirements with Debugger [31a5f54b] to versions: 0.10.0-0.10.3 — no versions left
   └─Debugger [31a5f54b] log:
     ├─possible versions are: 0.1.0-0.7.13 or uninstalled
     ├─restricted to versions * by project [494d2900], leaving only versions: 0.1.0-0.7.13
     │ └─project [494d2900] log:
     │   ├─possible versions are: 0.0.0 or uninstalled
     │   └─project [494d2900] is fixed to version 0.0.0
     └─restricted to versions 0.7.13 by an explicit requirement, leaving only versions: 0.7.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions