From cbf4e7970ba00ad1d96d83ab4d18419a67dd51dc Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Tue, 9 Mar 2021 14:18:03 +1300 Subject: [PATCH] Print out executed code blocks when in debug mode --- src/Literate.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Literate.jl b/src/Literate.jl index 0398148..01e9212 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -705,6 +705,11 @@ end # Execute a code-block in a module and capture stdout/stderr and the result function execute_block(sb::Module, block::String) + @debug """execute_block($sb, block) + ``` + $(block) + ``` + """ # Push a capturing display on the displaystack disp = LiterateDisplay() pushdisplay(disp)