Reputation: 155
I have an application on meteor
but I can't run it, because runtime gives TypeError: Cannot read property 'length' of undefined
. I know that error was initiated in source code of meteor
, and I can't find out why. I want to debug my app with stepping into meteor.js sources. How can I do this in Visual Studio Code?
Upvotes: 0
Views: 2214
Reputation: 7777
VSCode has meteor debugging capability for both client and server. Worth looking at using that. https://code.visualstudio.com/
Here is a recipe on setting it up with 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.
Upvotes: 2