Move `debug_elements` to `AsyncAppContext`

Previously, `debug_elements` was available on `WindowContext`. If that
method was called while having a borrow out to a view, it would panic because
the view would already have been borrowed.

By moving it to an `AsyncAppContext` we ensure the method can't be called while
a view is being used.
794446bf8bAntonio Scandurra committed on 5/2/2023, 9:09:40 AMparent4c1cba6
4 files changedLine totals unavailable