Yanjiong Wang
Yanjiong Wang

Reputation: 229

how to step by step debug in mongodb's map/reduce

Is there any way to step by step debug in MongoDB's map/reduce javascript?

It seems that we only can use print() to write some data to the log file. --> mongodb: how to debug map/reduce on mongodb shell

Upvotes: 1

Views: 1327

Answers (2)

user3493312
user3493312

Reputation: 51

Also take a look at this simple online MongoDB MapReduce debugger which allows to get aggregation results on sample data as well as perform step-by-step debugging of Map / Reduce / Finalize functions right in your browser dev environment (e.g. in Chrome DevTool).

http://targetprocess.github.io/mongo-mapreduce-debug-online/

Upvotes: 1

James Wahlin
James Wahlin

Reputation: 2821

See the following page which provides details on how to debug both the map and reduce steps in MongoDB MapReduce:Troubleshooting MapReduce

Upvotes: 2

Related Questions