On Wed, Sep 7, 2011 at 5:43 PM, Enlightenment SVN
<[email protected]> wrote:
> Log:
> edje - added print_int print_float print_str funcs for debugging in embryo 
> script

ouch, did you talk to raster about this?

I recall I did ask about this before and he was against as it can be
used to get outside the managable control (ie: an e17 theme can output
so much that would full user's disc at ~/.xsession-errors).

The convention is to debug using either messages or signals, at app:

void _dbg(void *data, Evas_Object *ed, const char *a, const char *msg)
{
   fprintf(stderr, "DBG %p: %s\n", ed, msg);
}

edje_object_signal_callback_add(ed, "dbg", "*", _dbg, NULL);

and from embryo you emit signals using "dbg" source:
new buf[1024];
snprintf(buf, sizeof(buf), "....", ...);
emit("dbg", buf);


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to