From e1e57836ba90bbfdc7cf7db6b9bf48664cb0d20b Mon Sep 17 00:00:00 2001 From: Nathan Musoke Date: Tue, 11 Jul 2023 17:53:48 -0400 Subject: [PATCH] `@debug` the next REPL line before evaling it Add a `@debug` expression within DocTests.eval_repl to show which line is about to be evaluated. This was requested in https://github.com/JuliaDocs/Documenter.jl/issues/2013 --- src/DocTests.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DocTests.jl b/src/DocTests.jl index f2bdd9291c5..c66a11444e7 100644 --- a/src/DocTests.jl +++ b/src/DocTests.jl @@ -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.