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

allow accessing the JuliaInterpreter frame with a sentinel #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KristofferC
Copy link
Member

@KristofferC KristofferC commented Mar 29, 2019

julia> @enter sin(2.0)
In sin(x) at special/trig.jl:30
>30  absx = abs(x)
 31  if absx < T(pi)/4 #|x| ~<= pi/4, no need for reduction
 32      if absx < sqrt(eps(T))
 33          return x
 34      end

About to run: (abs)(2.0)
1|debug> w add __FRAME__.pc
1] __FRAME__.pc: 4

1|debug> w add __FRAME__.framedata.ssavalues[5]
1] __FRAME__.pc: 4
2] (__FRAME__.framedata).ssavalues[5]: UndefRefError()

1|debug> nc
In sin(x) at special/trig.jl:30
 30  absx = abs(x)
>31  if absx < T(pi)/4 #|x| ~<= pi/4, no need for reduction
 32      if absx < sqrt(eps(T))
 33          return x
 34      end
 35      return sin_kernel(x)

About to run: (Float64)(π = 3.1415926535897...)
1|debug> w
1] __FRAME__.pc: 6
2] (__FRAME__.framedata).ssavalues[5]: 2.0

TODO: Docs + test

cc @vchuravy

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

Successfully merging this pull request may close these issues.

1 participant