如何让 Julia @debug 的信息打印出来

@debug 后面的信息默认是不打印的,怎么样设置成默认打印呢?
我设置 ENV["JULIA_DEBUG"]="all" 后也只能在当前文件中打印 @debug 信息,但是调用其他函数时又不能打印了。

没看懂…

你可以进REPL或者执行某个文件(julia XXX.jl)之前,加入变量就可以了,比如

$ JULIA_DEBUG="all" julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.2 (2018-11-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> @debug 1+1
┌ Debug: 2
└ @ Main REPL[1]:1

all可以换成其它module名

哦哦,明白了,但是在 Juno 下怎么弄呢?

呃,我没用过Juno,爱莫能助。。。

:sweat_smile: 好的,还是很感谢。