You can remotely debug a Safari session on a device - but it has to be through desktop Safari. It's in the Develop menu.
Edit: Oh, you mean you tried this, but it works differently? Or are you using some linux-based dev tools?
e.g. 192.168:56:65:4000