|
|
|
Use XMPP-Client as debug-console
|
|
1 points
by aya72
4887 days ago
|
|
Sometimes it is not easy to get some debug-output to find an error inside your code.
I use my XMPP/Jabber-Client as an universal debug-console. If you like the idea add the buddy dump@jabber.databay.de and send 'help'. You get some short code-snippets (PHP, JS, JQuery, Shell) with which you can send Debug-output to your Jabber-client. e.g. If your need an output from within a PHP-script you can call: file('http://databay.de/dump/?key=myKEY&data='.urlencode($myINFO)); or if you need an output from within your phonegap-js-app try: (new Image()).src='http://databay.de/dump/?key=myKEY&data='+myINFO; or you have a shell-script you can use wget or anything similar: wget -q --delete-after http://databay.de/dump/?key=myKEY\&data=myINFO |
|