Closed oschulz closed 5 years ago
Hmm, yes, I should have updated those docs. I am a little surprised it's working without Rebugger.repl_init
, for reference here is my startup.jl
:
atreplinit() do repl
try
@eval using Revise
@async Revise.wait_steal_repl_backend()
@async Revise.debug_logger()
catch
end
end
atreplinit() do repl
try
@eval using Rebugger
Rebugger.repl_init()
catch
end
end
(I turn on the debug logger to make it easier to trap Revise mistakes, not that I've noticed one in a while.)
Oh, it looks like __init__
contains a call to REPL.setup_interface
too, so I guess it's no longer necessary. Want to submit a PR? Or should I?
Done. :-)
The Rebugger docs currently don't mention a way to only load Rebugger if Julia is in REPL mode (analog to the
atreplinit() ...
in the Revise docs). I came up with this - it seems to work, but is it safe (without callingRebugger.repl_init
, which doesn't seem to work in this setting)?"startup.jl":