Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print out executed code blocks when in debug mode #137

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

mortenpi
Copy link
Contributor

@mortenpi mortenpi commented Mar 9, 2021

Makes Literate print out something like this

┌ Debug: execute_block(Main.##253, block)
│ ```
│ # Generation date and time
│ using Dates: now; now()
│ ```
└ @ Literate ~/Projects/highZ/dev/Literate/src/Literate.jl:708

for each code block it executes if e.g. JULIA_DEBUG=Literate.

Not sure if you want this, but I found it useful when debugging a case where Literate stalled while executing some code. This makes it a little bit easier to identify where it happens. If you want to merge this, I could also add a small note about this in the "Tips and tricks" section of the manual.

@fredrikekre
Copy link
Owner

I could also add a small note about this in the "Tips and tricks" section of the manual.

Yea that would be nice!

@mortenpi mortenpi changed the title RFC: Print out executed code blocks when in debug mode Print out executed code blocks when in debug mode Mar 10, 2021
@mortenpi
Copy link
Contributor Author

Done 🙂

@fredrikekre fredrikekre merged commit 08df88d into fredrikekre:master Mar 22, 2021
@mortenpi mortenpi deleted the mp/debug branch March 23, 2021 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants