Debugger.jl icon indicating copy to clipboard operation
Debugger.jl copied to clipboard

allow accessing the JuliaInterpreter frame with a sentinel

Open KristofferC opened this issue 6 years ago • 0 comments

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

KristofferC avatar Mar 29 '19 21:03 KristofferC