Keno / ASTInterpreter.jl

Gallium's AST interpreter as a separate package to simplify development
Other
16 stars 10 forks source link

IJulia support #65

Closed cstjean closed 2 years ago

cstjean commented 7 years ago

This PR provides a mode similar to IPython's %debug:

screen shot 2017-01-21 at 14 21 52

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 and IJuliaRunDebugREPL? I looked into creating an active_repl object for IJulia so that we could use RunDebugREPL, but that seemed rather involved, and I didn't see any benefit.

cc. @stevengj

stevengj commented 7 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.)

cstjean commented 7 years ago

Done.