[mongodb] Debug Mapreduce

548 views
Skip to first unread message

Daker Fernandes

unread,
May 30, 2010, 8:06:51 AM5/30/10
to mongod...@googlegroups.com
Hi,

I would like to know what's the best way o debug javascript when running mapreduce routines.

Thanks!

Daker Fernandes Pinheiro (dfp)
Graduando em CC, turma 2007.2
CIn - UFPE

Лоик

unread,
May 30, 2010, 8:47:34 AM5/30/10
to mongod...@googlegroups.com
You can use the print() method. If it can't output to stdout ( I think it use stdout), It will print to the log file.

So if you put a print method, it will print things to your log file...

I'd use the mongo shell in a terminal.. and I would use tail -f "log file" to see the output flow in real time.
I heard about a way to debug js within firebug using the mongo shell emulator. Not sure if it works fine.

the print() method should be a good start.
Reply all
Reply to author
Forward
0 new messages