MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / debug

Method debug

src/__init__.py:2370–2374  ·  view source on GitHub ↗

Print a list of the node tree below self.

(self)

Source from the content-addressed store, hash-verified

2368 return Xml( mupdf.fz_dom_create_text_node( self.this, text))
2369
2370 def debug(self):
2371 """Print a list of the node tree below self."""
2372 items = self._get_node_tree()
2373 for item in items:
2374 message(" " * item[0] + item[1].replace("\n", "\\n"))
2375
2376 def find( self, tag, att, match):
2377 ret = mupdf.fz_dom_find( self.this, tag, att, match)

Callers

nothing calls this directly

Calls 2

_get_node_treeMethod · 0.95
messageFunction · 0.70

Tested by

no test coverage detected