Skip to content

Commit

Permalink
@debug the next REPL line before evaling it
Browse files Browse the repository at this point in the history
Add a `@debug` expression within DocTests.eval_repl to show which line is
about to be evaluated.
This was requested in
#2013
  • Loading branch information
musoke committed Jul 11, 2023
1 parent 7c97a86 commit e1e5783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DocTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ end

function eval_repl(block, sandbox, meta::Dict, doc::Documenter.Document, page)
for (input, output) in repl_splitter(block.code)
@debug "Evaluating REPL line" input output
result = Result(block, input, output, meta[:CurrentFile])
for (ex, str) in Documenter.parseblock(input, doc, page; keywords = false, raise=false)
# Input containing a semi-colon gets suppressed in the final output.
Expand Down

0 comments on commit e1e5783

Please sign in to comment.