在 meteor.js 的源代码中调试

Debugging in source code of meteor.js

我在 meteor 上有申请,但我不能 运行,因为 运行时间有限 TypeError: Cannot read property 'length' of undefined。我知道错误是在 meteor 的源代码中引发的,但我找不到原因。我想通过进入 meteor.js 源来调试我的应用程序。我如何在 Visual Studio 代码中执行此操作?

VSCode 对客户端和服务器都具有流星调试功能。值得一看使用它。 https://code.visualstudio.com/

这是使用 Meteor 进行设置的方法

https://github.com/Microsoft/vscode-recipes/tree/master/meteor

This recipe shows how to use the built-in Node Debugger and the Debugger for Chrome extension with VS Code to debug meteor applications.

Meteor is used to write applications that runs on both on the server and client with the same code, and this is a great match for VS Code, as we can debug both the server and client at the same time! This means that you'll need to use two debugger instances within VS Code to debug both ends. This is the reason for why you'll need both the built-in Node Debugger and the Debugger for Chrome.