Opera Mini: javascript debugging FAQ

Feb 14, 2012 16:09

The web is going mobile! And you've decided to catch the wave too.
Good. Well, until you have decided to support all those "dumb" phones...
(And Nintendo Wii, and some TVs)

At least, if you stick to Opera Mini, you will have proper Javascript, XHR, CSS and a lot of other goodies.
But you are inevitably going to debug all this stuff. Here's how:

Q: I am tired of switching to my phone. Is there an emulator?
A: Touch-enabled phones: http://www.opera.com/developer/tools/mini/
Keypad phones: http://www.opera.com/developer/tools/mini/?ver=4

Q: Well, no good. Where are all the Javascript errors?
A: debug:console (You can bookmark this address, of course)

Q: How to view the page source code, then?
A: server:source

Q: But the screen is so tiny?
A: server:source?post=http://your.server.com/script
If you go to this address on Opera Mini, your server will receive HTTP POST request with the following fields:

host: your website domain
url: page you are on
html: html source code ;)

For more information, see:
- http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/
- http://dev.opera.com/articles/view/opera-mini-5-developers/

Hope this will be useful to somebody :)

This entry was originally posted at http://wizzard.dreamwidth.org/225526.html. It has
comments. Please comment there using OpenID.

faq, opera, mobile

Previous post Next post
Up