朱莉娅中调试功能的替代品是什么?


julia> debug("hello")
ERROR: UndefVarError: debug not defined
Stacktrace:
[1] top-level scope at REPL[6]:1

即使尝试使用Docker也无法找到合适的替代品。

help?> debug
search: @debug
Couldn't find debug
Perhaps you meant @debug, @enum, big or detach
No documentation found.
Binding debug does not exist.

使用@debug宏打印调试输出。

您必须启用调试输出才能实际看到它。您可以使用 env 变量JULIA_DEBUG启用它:

julia> @debug "hello"
julia> ENV["JULIA_DEBUG"] = "all"
"all"
julia> @debug "hello"
┌ Debug: hello
└ @ Main REPL[4]:1

最新更新