Skip to content

Debugger jumps to the wrong "end" #175

Description

I have the following simple code

module TestIf
export test_code
function test_code(head, top_ex)
    for ex in top_ex.args
        if typeof(ex) == LineNumberNode
            continue
        elseif typeof(ex) == Expr
            println("Expression!")
        else
            println("nothing!")
        end
    end
end
end

Then I run Debugger like this:

@enter test_code(:Test, quote
       a = Float()
       @someMacro begin
       b = a + 1
       end
       end)

then I do 'n' two times and get this stage:

1|debug> n
In test_code(head, top_ex) at C:\Users\Cong Van\Documents\Debugger.jl\test\TestIf.jl:4
  6              continue
  7          elseif typeof(ex) == Expr
  8              println("Expression!")
  9          else
>10              println("nothing!")
 11          end
 12      end
 13  end

which is not correct. I think it should be at the 'end' of if statement. Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions