Browse Source

Print out executed code blocks when in debug mode

pull/137/head
Morten Piibeleht 5 years ago
parent
commit
cbf4e7970b
  1. 5
      src/Literate.jl

5
src/Literate.jl

@ -705,6 +705,11 @@ end
# Execute a code-block in a module and capture stdout/stderr and the result # Execute a code-block in a module and capture stdout/stderr and the result
function execute_block(sb::Module, block::String) function execute_block(sb::Module, block::String)
@debug """execute_block($sb, block)
```
$(block)
```
"""
# Push a capturing display on the displaystack # Push a capturing display on the displaystack
disp = LiterateDisplay() disp = LiterateDisplay()
pushdisplay(disp) pushdisplay(disp)

Loading…
Cancel
Save