Expose debugger-env
This makes it easier/possible to use the debugging
functionality in a more flexible way.
(set res (debug/step (.fiber))))
res)
+(def debugger-env
+ "An environment that contains dot prefixed functions for debugging."
+ @{})
+
(def- debugger-keys (filter (partial string/has-prefix? ".") (keys _env)))
-(def- debugger-env @{})
(each k debugger-keys (put debugger-env k (_env k)) (put _env k nil))
(put _env 'debugger-keys nil)
:on-status (or onsignal (make-onsignal env 1))
:source "repl"}))
-(put _env 'debugger-env nil)
-
###
###
### CLI Tool Main
