I currently thought a bit about a way to implement this. I don’t know how Pythonista is doing that. My question was, where to display them when a UI is shown?
One way that came to my mind was to implement a WebSocket connection when there is a WiFi connection to a remote PC with for example the chrome debugging protocol (I’ve found this one, but I don’t know if this is the right one).
Another possibility could be to set the breakpoints in the editor view on iOS. And while debugging, the user can shake his device to switch between the displayed UI element and the editor view. Or there is a button floating on the screen that can be dragged around like the iOS accessibility menu button and when tapped displays either a menu or switches to the editor view.
Just some thoughts and a little brainstorming