Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MongoDB 的外壳扩展了 SpiderMonkey。有没有办法连接到SpiderMonkey 的一些调试支持?我还没有找到一种方法来做一些简单的事情,比如激活一个 onerror() 处理程序来打印未处理异常的调用堆栈跟踪。
目前 mongo 的源代码使用 spidermonkey 1.7,因此不支持调试 API,因为它似乎是添加到 1.8 的。
将来 mongo 可能会升级到 SM1.8,如果您想请求功能,请在 jira.mongodb.org 上提交工单。
根据@cdleary 的观点,MongoDB 的外壳似乎没有集成 SpiderMonkey 的调试支持。