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

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

Closed
nacnudus opened this issue Nov 13, 2020 · 1 comment
Closed

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

nacnudus opened this issue Nov 13, 2020 · 1 comment

Comments

@nacnudus
Copy link

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.")
@pfitzseb
Copy link
Member

Dup of #134.

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