Skip to content

n skips assignments and branches #291

@bicycle1885

Description

@bicycle1885

This behavior is surprising because it suddenly jumps to an unexpected place:

julia> function foo(x)
           println(x)
           y = 0
           if x
               y = 1
           end
           return y
       end
foo (generic function with 1 method)

julia> @enter foo(true)
In foo(x) at REPL[2]:1
 1  function foo(x)
>2      println(x)
 3      y = 0
 4      if x
 5          y = 1
 6      end

About to run: (println)(true)
1|debug> n
true
In foo(x) at REPL[2]:1
 3      y = 0
 4      if x
 5          y = 1
 6      end
>7      return y
 8  end

About to run: return 1
1|debug>
1

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