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

Sometimes StepNext will step you into the debuggers source #42

Open
oxinabox opened this issue Mar 21, 2019 · 0 comments
Open

Sometimes StepNext will step you into the debuggers source #42

oxinabox opened this issue Mar 21, 2019 · 0 comments

Comments

@oxinabox
Copy link
Owner

I am pretty sure this is to do with StepNext becoming StepOut if there are no more statements here.
But even so StepOut should not do this either.

julia> function f(x)
                  return x
              end
f (generic function with 1 method)

julia> @iron_debug f(2)
2

julia> set_breakpoint!(f)
1-element Array{MagneticReadHead.Rule,1}:
^[[A MagneticReadHead.Rule{typeof(f)}(f, 0)

julia> @iron_debug f(2)

Breakpoint Hit: f(x) in Main at REPL[2]:2
➧function f(x)
            return x
        end

Vars: x
Commands: CC (Continue), SI (Step In), SN (Step Next), SO (Step Out), XX (Abort)
iron>SN

Breakpoint Hit: (::getfield(Main, Symbol("##9#10")))() in Main at /Users/oxinabox/JuliaEnvs/MagneticReadHead/src/MagneticReadHead.jl:33
         ctx = HandEvalCtx($(__module__), StepContinue())
         try
➧            return Cassette.recurse(ctx, ()->$(esc(body)))
         catch err
             err isa UserAbortedException || rethrow()

Vars:
Commands: CC (Continue), SI (Step In), SN (Step Next), SO (Step Out), XX (Abort)
iron>SN
2
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

1 participant