Print debugging statement: Difference between revisions
Content added Content deleted
(julia example) |
|||
Line 121: | Line 121: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Julia has a |
Julia has a native logging functions. In addition, there are several modules, such as Memento, with extended logging functionality. Julia's builtin logging has defined macros for 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() |
<lang julia>function test() |
||
@info "starting test()" |
@info "starting test()" |
||
Line 153: | Line 153: | ||
└ @ Main C:\Users\William\Documents\Julia Scripts\test2.jl:13 |
└ @ Main C:\Users\William\Documents\Julia Scripts\test2.jl:13 |
||
</pre> |
</pre> |
||
=={{header|Mercury}}== |
=={{header|Mercury}}== |