-
|
In the comment #218 (comment) @klmr writes that all the standard R debugging tools should work. I however have problems using
Suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
For debugging purposes etc., a module’s non-exported functions can be accessed via the module namespace. In turn, the module namespace is (currently) accessible via mod_ns = attr(module, 'namespace')
# … and then:
debugonce(mod_ns$fun)I’m still torn on whether this is supposed to be part of the “public API” of ‘box’, which is why it currently isn’t documented (i.e. it’s — at least in principle — subject to change). However, I can see that some way of accessing the namespace and/or non-exported names is needed. Maybe a new scope access operator (analogous to
Agreed! But in addition to the above, I’m currently unsure where this would fit. A vignette on debugging? A vignette on ‘box’ module internals? For the latter, there’s The hierarchy of module environments, which could be extended with technical details; however, as noted at the top of that vignette, I don’t expect regular users of ‘box’ to actually read this (nor to need to). |
Beta Was this translation helpful? Give feedback.
For debugging purposes etc., a module’s non-exported functions can be accessed via the module namespace. In turn, the module namespace is (currently) accessible via
I’m still torn on whether this is supposed to be part of the “public API” of ‘box’, which is why it currently isn’t documented (i.e. it’s — at least in principle — subject to change). However, I can see that some way of accessing the namespace and/or non-exported names is needed. Maybe a new scope access operator (analogous to
:::), e.g.mod%:::%fun?Agreed! But in addition to the above, I’m currently uns…