title: Debugging xml ElementTrees in Python
body: <p>I have an XML string</p>
  
  <pre><code>xml_str = '&lt;Foo&gt;&lt;Bar&gt;burp&lt;/Bar&gt;&lt;/Foo&gt;'
  </code></pre>
  
  <p>I'm parsing it with xml etree</p>
  
  <pre><code>import xml.etree.ElementTree as ET
  root_element = ET.fromstring(xml_str)
  </code></pre>
  
  <p>This creates an Element object(root_element) with a tag, tail, text, and attrib values within it. I can see all of them when debugging. However, I can't see any children Elements while debugging. I know the children are there because I can access them in a for loop.</p>
  
  <pre><code>for child in root_element:
      *break point here*
  </code></pre>
  
  <p>Below is a screenshot of what I'm seeing</p>
  
  <p><a href="https://i.stack.imgur.com/UYcIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UYcIF.png" alt="debugger"></a></p>
  
  <p>Is there a way to see all elements at once while debugging? And is this issue because the XML parser is a JIT parser or something? </p>