Closed mmcky closed 6 years ago
@FelipeMaldonado specifically I would like to inspect the node
object while executing visit_only()
.
@NickSifniotis if you had a spare minute - do you remember how you inspected the node
object?
while one is debugging the sphinx extension.
I think we need to integrate with sphinx.util.logging
but not sure how this works. I have tried setting
logger = logging.getLogger("sphinx")
and then issuing messages using logger.info(<msg>)
but this doesn't work.
this has been resolved. I was trying to raise an exception in an element of the document that was parsed during transform
phase and therefore was already handled prior to Writer phase in Sphinx.
It is unclear how to halt execution in
sphinx extension
using the standard approachesimport pdb; pdb.set_trace()
is ignored-P
option forsphinx-build
is ignored whenraise Exception
is issued andprint
statements are clearly capturedanyone have any tips. I have read: http://www.sphinx-doc.org/en/master/man/sphinx-build.html http://www.sphinx-doc.org/en/master/devguide.html#debugging-tips
I have a problem where I would like to expose the node structure and introspect the object at a specific point in time.