Reputation: 229
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
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
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