Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakpoint method error #9

Open
hendri54 opened this issue Jul 26, 2020 · 2 comments
Open

breakpoint method error #9

hendri54 opened this issue Jul 26, 2020 · 2 comments

Comments

@hendri54
Copy link

Trying to set a breakpoint, I get the error:

julia> breakpoint(foo, 3)
┌ Warning: Hook function errored
│   hook = breakpoint_hook (generic function with 3 methods)
│   hooked_fun = breakpoint (generic function with 10 methods)
│   bp = foo:3
│   exception =
│    MethodError: no method matching make_interpretted_mode_overdub(::typeof(foo))
│    Closest candidates are:
│      make_interpretted_mode_overdub(::Any, ::Tuple) at /Users/lutz/.julia/packages/MixedModeDebugger/ClyG9/src/make_overdub.jl:48
│      make_interpretted_mode_overdub(::JuliaInterpreter.BreakpointSignature) at /Users/lutz/.julia/packages/MixedModeDebugger/ClyG9/src/make_overdub.jl:65
│      make_interpretted_mode_overdub(::Method) at /Users/lutz/.julia/packages/MixedModeDebugger/ClyG9/src/make_overdub.jl:57
└ @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/RmxVj/src/breakpoints.jl:52
foo:3

where foo is just a couple of lines of dummy code. breakpoint("test1.jl", 6 gives the same error (where "test.jl" defines foo).

Setting breakpoints this way when I just use Debugger.jl gives no errors.

Any advice on what I am doing wrong would be appreciated.

julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_PKG_DEVDIR = /Users/lutz/Documents/julia
  JULIA_EDITOR = /usr/local/bin/code
@oxinabox
Copy link
Owner

I suspect we are missing the overload for this version of breakpoint

@hendri54
Copy link
Author

Got it - will use the @breakpoint macro instead. Thank you.

@oxinabox oxinabox reopened this Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants