Does anyone know a trick how to get Firebug or similar running directly on iOS? I know that you can connect the iOS device to your Mac and run the developer tools on the big machine.

What I’m looking for is having Firebug directly running on the mobile device.

Liriliri's Eruda is in the "or similar" category and works directly in mobile browsers: https://github.com/liriliri/eruda With the caveat that if you want to use it on arbitrary websites, you need to be able to inject the script somehow, e.g. using a bookmarklet, which may not be possible in all browsers.

EDIT: Discussion 4 months ago https://news.ycombinator.com/item?id=22968079 , where nxrabl shared the tip of editing an existing bookmark with the javascript code to get it to work in Safari on iOS.