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

Macro for non-interactive 'compiled mode'

Open johnomotani opened this issue 4 years ago • 0 comments

Would it be possible to add macros to activate/deactivate 'compiled mode' in a similar way to the breakpoint macro @bp?

For example, if I have a program that has a lot of initialization, which takes a very long time in the interpreter, I think it would be nice to be able to do something like

function main()
    @enter_compiled_mode
    <A bunch of calls to expensive initialization functions>
    @exit_compiled_mode
    # Now we can run in the interpreter until we hit @bp
    <Code that does stuff...>
end

johnomotani avatar Oct 27 '21 11:10 johnomotani