debugging javascript?

Dan Reverri dan at basho.com
Tue Oct 19 19:41:39 EDT 2010


Hi Jon,

The object passed to a JavaScript map function is documented here:
http://wiki.basho.com/display/RIAK/MapReduce#MapReduce-Mapphasefunctions

There is also a logging function available (ejsLog):
http://wiki.basho.com/display/RIAK/MapReduce#MapReduce-DebuggingJavascriptMapReducePhases

Thanks,
Dan

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
dan at basho.com


On Tue, Oct 19, 2010 at 2:20 PM, Jon Brisbin <jon at jbrisbin.com> wrote:

> Couldn't find much on this out in the wild, so I'm assuming I'm not looking
> for the right things.
>
> I'm trying to figure out Riak's MapReduce using the Ruby client. I can't
> seem to get even the simplest map/reduce to work:
>
> function(v){ var o = JSON.parse(v.values[0].data); return [o]; }
>
> So I thought I'd log what I was doing inside this function. I could not,
> for the life of me, find a reference for the available Javascript functions,
> objects, etc... that are available so I can do some debugging.
>
> What tools are available to me within a map/reduce function? There seems to
> be some conflicting information, particularly regarding a "Riak" object that
> I've seen referenced online. Couldn't find any docs on it, though.
>
> Thanks ahead of time!
>
> (sitting around waiting on SpringOne 2GX to start)
>
> J. Brisbin
> http://jbrisbin.com/
>
>
>
>
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20101019/b9e71e45/attachment.html>


More information about the riak-users mailing list