Print debugging statement: Difference between revisions

m
(julia example)
Line 121:
 
=={{header|Julia}}==
Julia has a built-nnative Logginglogging system,functions. andIn addition, there are several modules, such as Memento, with extended logging abilitiesfunctionality. ThereJulia's arebuiltin logging has defined levelsmacros offor logging levels: @error, @warn, @info, and @debug. By default, debug level statements in code are not printed unless the logging level is set to allow debug statements to print, which can be enabled by setting the JULIA_DEBUG environment variable.
<lang julia>function test()
@info "starting test()"
Line 153:
└ @ Main C:\Users\William\Documents\Julia Scripts\test2.jl:13
</pre>
 
 
=={{header|Mercury}}==
4,108

edits