Skip to content

Commit

Permalink
at-trace
Browse files Browse the repository at this point in the history
and docstrings
  • Loading branch information
pfitzseb committed Mar 20, 2019
1 parent 56e706c commit 452df83
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/user.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ macro enter(ex)
end

"""
@enter ex
@run ex
Step into `ex`.
Run `ex` with the Interpreter and break when a breakpoint is encountered.
"""
macro run(ex)
Main.Atom.enter(__module__, ex; initial_continue = true)
end

"""
@trace ex
Analyse `ex` for type instabilities using Traceur.jl.
"""
macro trace(ex, args...)
Main.Atom.trace(ex, args...)
end

function connect(args...; kws...)
activate()
eval(:(Main.Atom.connect($args...; $kws...)))
Expand Down

0 comments on commit 452df83

Please sign in to comment.