On 1/8/2019 2:39 AM, Henri Menke wrote:
On 8/01/19 2:29 PM, Stanislav Sokolenko wrote:
That's perfect, thank you! I did see the cache variable in buff-ini.lua
but didn't realize it was being used as an upvalue in a closure. Is
there a specific reason for using the --debug flag rather than just
loading the debug module directly in the code? The following seems to
work without the --debug flag but I want to make sure I'm not causing
some sort of side effect.

Interesting... Actually it should not work, because this way you can
escape the sandboxing.  I guess Hans will fix that in the future, so you
shouldn't rely on that.

@Hans: To disable debug completely you should add
`package.loaded["debug"] = nil` somewhere.
we never disable it completely (we keep the traceback for instance) but indeed we also need to adapt loaded

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to