Closed cstjean closed 2 years ago
I just added an IJulia.readprompt
function (https://github.com/JuliaLang/IJulia.jl/commit/1695a223a9a6de94c848104bf4d5a1f4942576fe), so you can now do IJulia.readprompt("debug> ")
to get a debug>
prompt rather than STDIN>
.
(Just do isdefined(IJulia, :readprompt)
to check whether this feature is available.)
Done.
This PR provides a mode similar to IPython's
%debug
:Both ASTInterpreter's and Gallium's master have precompilation issues for me on 0.5, so I haven't been able to test everything.
breakpoint_on_error()
freezes without any error message.Would you like me to factor out some of the common code between
RunDebugREPL
andIJuliaRunDebugREPL
? I looked into creating anactive_repl
object for IJulia so that we could useRunDebugREPL
, but that seemed rather involved, and I didn't see any benefit.cc. @stevengj