title: How to debug iOS 14 widget in Xcode 12?
body: <p>I am working on an iOS 14 widget which I would like to my existing iOS 11+ app. The whole process is quite cumbersome because it happens quite often that something does not work as expected.</p>
  <p>For example the widget shows unexpected data, or is not rendered as expected (<a href="https://stackoverflow.com/questions/64205752">e.g. as described here</a>). I assume that something wents wrong when the system requests the widget and its content from my app extension. However I cannot figure out what this might be.</p>
  <p><strong>Is there any way to actually debug the widget extension?</strong> Seeing when the code is executed and how it works?</p>
  <p>I have already tried to hook up the debugger to the widget extension (using the <code>Debug/Attach to process</code> menu in Xcode). While the process is listed there, the debugger shows no log output nor stops on breakpoints.</p>
  <p>Using the system console to show the logs of the iOS simulator devices does not work as well. It does not matter if <code>print(...)</code> or <code>NSLog(...)</code> is used. No output reaches the console.</p>