Skip to content

@bp doesn't work when it is the first line of the first function #277

@nacnudus

Description

@nacnudus

Thank you for developing and maintaining this package.

This is a minor bug, as discussed on Discourse, but it bewildered me for a while.

using Debugger

function fun1()
  @bp
  print("I'm fun one.\n")
  fun2()
end

function fun2()
  @bp
  print("I'm fun, too.")
end

@run fun1()

Returns

julia> @run fun1()
I'm fun one.
Hit breakpoint:
In fun2() at REPL[34]:1
 1  function fun2()
●2    @bp
>3    print("I'm fun, too.")
 4  end

About to run: (print)("I'm fun, too.")

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